Compare commits
2 Commits
c494a90227
...
15a09789a0
Author | SHA1 | Date | |
---|---|---|---|
15a09789a0 | |||
44fa24f2b7 |
@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "1.3.46"
|
||||
current_version = "1.3.47"
|
||||
commit = true
|
||||
tag = true
|
||||
tag_name = "{new_version}"
|
||||
|
5
app.py
5
app.py
@ -176,7 +176,12 @@ def send_test_notification():
|
||||
if not session.get("logged_in"):
|
||||
return jsonify({'error': 'Unauthorized'}), 401
|
||||
|
||||
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:
|
||||
return jsonify({"message": "No push subscriptions found."}), 404
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user