From 264d253e0395ed3c15cea15483373cf71dba6e2e Mon Sep 17 00:00:00 2001 From: boke0 Date: Sun, 7 Mar 2021 00:48:26 +0900 Subject: [PATCH] [update] --- mitama/models/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitama/models/nodes.py b/mitama/models/nodes.py index 62e25a0..89a024e 100644 --- a/mitama/models/nodes.py +++ b/mitama/models/nodes.py @@ -590,7 +590,7 @@ def push(self, data): try: webpush( subscription_info=json.loads(self.subscription), - data=data, + data=json.dumps(data), vapid_private_key=self.project.vapid.private_key, vapid_claims={ "sub": "mailto:{}".format(self.project.vapid.mailto)