Compare commits
2 Commits
c494a90227
...
15a09789a0
Author | SHA1 | Date | |
---|---|---|---|
15a09789a0 | |||
44fa24f2b7 |
@ -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}"
|
||||||
|
7
app.py
7
app.py
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user