From e6e577c99ea2194586b07cf8bdaebc91a91ce32c Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Thu, 7 Nov 2019 13:33:29 +0000 Subject: [PATCH] Updates Watcher to use serialize instead of to_json --- pisa/watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisa/watcher.py b/pisa/watcher.py index 5d579e9..1c94d6e 100644 --- a/pisa/watcher.py +++ b/pisa/watcher.py @@ -38,7 +38,7 @@ class Watcher: self.signing_key = load_pem_private_key(secret_key_pem, password=None, backend=default_backend()) def sign_appointment(self, appointment): - data = appointment.to_json().encode("utf-8") + data = appointment.serialize() return self.signing_key.sign(data, ec.ECDSA(hashes.SHA256())) def add_appointment(self, appointment):