Simplifies Inspector using Appointment.from_json() constructor

This commit is contained in:
Sergi Delgado Segura
2019-11-07 16:35:55 +00:00
parent 8f7505c17a
commit 2b1640ea86
2 changed files with 10 additions and 17 deletions

View File

@@ -27,7 +27,8 @@ class Appointment:
encrypted_blob_data = appointment_data.get("encrypted_blob")
cipher = appointment_data.get("cipher")
hash_function = appointment_data.get("hash_function")
triggered = appointment_data.get("triggered")
triggered = True if appointment_data.get("triggered") is True else False
if any(
v is None