Several fixes from PR review

This commit is contained in:
Salvatore Ingala
2019-10-23 22:33:34 +08:00
parent e80206c2cd
commit b633c89724
2 changed files with 14 additions and 21 deletions

View File

@@ -40,10 +40,7 @@ def add_appointment():
if appointment_added:
rcode = HTTP_OK
response = {
"locator": appointment.locator,
"signature": hexlify(signature).decode('utf-8')
}
response = {"locator": appointment.locator, "signature": hexlify(signature).decode('utf-8')}
else:
rcode = HTTP_SERVICE_UNAVAILABLE
error = "appointment rejected"