mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-01-18 13:54:19 +01:00
Pretty-JSON the get_appointment call
This commit is contained in:
@@ -93,7 +93,7 @@ def get_appointment(args):
|
|||||||
try:
|
try:
|
||||||
r = requests.get(url=get_appointment_endpoint+parameters, timeout=5)
|
r = requests.get(url=get_appointment_endpoint+parameters, timeout=5)
|
||||||
|
|
||||||
print(json.dumps(r.text))
|
print(json.dumps(r.json(), indent=4, sort_keys=True))
|
||||||
|
|
||||||
except ConnectTimeout:
|
except ConnectTimeout:
|
||||||
if debug:
|
if debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user