Compare commits

...

2 Commits

Author SHA1 Message Date
15a09789a0 Bump version: 1.3.46 → 1.3.47
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m48s
2025-07-18 15:57:07 +01:00
44fa24f2b7 notifications....again 2025-07-18 15:56:56 +01:00
3 changed files with 8 additions and 3 deletions

View File

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

View File

@ -1 +1 @@
1.3.46 1.3.47

7
app.py
View File

@ -176,7 +176,12 @@ def send_test_notification():
if not session.get("logged_in"): if not session.get("logged_in"):
return jsonify({'error': 'Unauthorized'}), 401 return jsonify({'error': 'Unauthorized'}), 401
subscriptions = get_push_subscriptions() try:
subscriptions = get_push_subscriptions()
except Exception as e:
print(f"Error getting push subscriptions: {e}")
return jsonify({"error": "Could not retrieve push subscriptions from the database."}), 500
if not subscriptions: if not subscriptions:
return jsonify({"message": "No push subscriptions found."}), 404 return jsonify({"message": "No push subscriptions found."}), 404