Pretty-JSON the get_appointment call

This commit is contained in:
Sergi Delgado Segura
2019-07-11 10:44:13 +02:00
parent 75545566fe
commit 5fe9fbf096

View File

@@ -93,7 +93,7 @@ def get_appointment(args):
try:
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:
if debug: