Changed to_json to to_dict in Appointment and Job; added to_json to Appointment to actually return a string

This commit is contained in:
Salvatore Ingala
2019-10-11 10:48:35 +07:00
parent e4e83167b7
commit 7c1d8b69c7
6 changed files with 28 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ class Watcher:
logger.info("New appointment accepted.", locator=appointment.locator)
if (self.signing_key is not None):
signature = self.signing_key.sign(appointment.serialize().encode('utf8'))
signature = self.signing_key.sign(appointment.to_json().encode('utf8'))
else:
appointment_added = False