mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user