From e5ed1d5dcfa82a6281df96de4368ccb431ab8eec Mon Sep 17 00:00:00 2001 From: boke0 Date: Sun, 7 Mar 2021 02:08:05 +0900 Subject: [PATCH] [update] --- mitama/models/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitama/models/nodes.py b/mitama/models/nodes.py index 55606ed..48d0592 100644 --- a/mitama/models/nodes.py +++ b/mitama/models/nodes.py @@ -592,9 +592,9 @@ def push(self, data): webpush( subscription_info=json.loads(self.subscription), data=json.dumps(data), - vapid_private_key=self._project.vapid.private_key, + vapid_private_key=self._project.vapid['private_key'], vapid_claims={ - "sub": "mailto:{}".format(self._project.vapid.mailto) + "sub": "mailto:{}".format(self._project.vapid['mailto']) } ) except Exception as err: