BE: /logs endpoint, comments resolution, github template

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-10 07:58:21 +11:00
parent 8483a741b4
commit 6d70a8a71d
4 changed files with 27 additions and 13 deletions

View File

@@ -390,6 +390,10 @@ def api_clean_log():
@app.route("/logs/add-to-execution-queue", methods=["POST"])
def api_add_to_execution_queue():
if not is_authorized():
return jsonify({"success": False, "message": "ERROR: Not authorized", "error": "Forbidden"}), 403
queue = UserEventsQueueInstance()
# Get JSON payload safely

View File

@@ -52,7 +52,7 @@ def clean_log(log_file):
except Exception as e:
msg = f"[clean_log] ERROR Failed to purge {log_file}: {e}"
mylog('none', [])
write_notification(msg)
return jsonify({"success": False, "message": msg}), 200
mylog('none', [msg])
write_notification(msg, 'interrupt')
return jsonify({"success": False, "message": msg}), 500