Compare commits

...

2 Commits

Author SHA1 Message Date
950da26958 Bump version: 1.2.10 → 1.2.11
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m39s
2025-07-17 18:13:16 +01:00
546c4fe6f6 notifications 2025-07-17 18:13:07 +01:00
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.2.10"
current_version = "1.2.11"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.2.10
1.2.11

View File

@ -23,6 +23,7 @@ ICQ0s1x364rGswAcVVJuu8q5XgZQrBLk/lkhQBcyyuuAjc4OvJLADqEk
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2b175VdEMr874DnbBDErdO5+aoGw
ZyAkNLNcd+uKxrMAHFVSbrvKuV4GUKwS5P5ZIUAXMsrrgI3ODrySwA6hJA==
-----END PUBLIC KEY-----"""
VAPID_CLAIM_EMAIL = "mailto:karl@k-world.me.uk" # Replace with your email
SECRET_KEY = "a_very_secret_key"
class DevelopmentConfig(Config):

View File

@ -193,7 +193,7 @@ def send_notification(subscription_info, message_body):
subscription_info=subscription_info,
data=message_body,
vapid_private_key=current_app.config["VAPID_PRIVATE_KEY"],
vapid_claims={"sub": "mailto:your-email@example.com"},
vapid_claims={"sub": current_app.config["VAPID_CLAIM_EMAIL"]},
)
except WebPushException as ex:
print(f"Web push error: {ex}")