mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-19 15:14:26 +01:00
Fixes Appointment.from_dict()
This commit is contained in:
@@ -27,7 +27,7 @@ class Appointment:
|
|||||||
hash_function = appointment_data.get("hash_function")
|
hash_function = appointment_data.get("hash_function")
|
||||||
|
|
||||||
if all([locator, start_time, end_time, dispute_delta, encrypted_blob_data, cipher, hash_function]) is not None:
|
if all([locator, start_time, end_time, dispute_delta, encrypted_blob_data, cipher, hash_function]) is not None:
|
||||||
appointment = cls(locator, start_time, end_time, dispute_delta, EncryptedBlob(encrypted_blob_data), cipher,
|
appointment = cls(locator, start_time, end_time, dispute_delta, encrypted_blob_data, cipher,
|
||||||
hash_function)
|
hash_function)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user