Delete State File and Live Stream File

This commit is contained in:
proitlab committed 2026-07-29 15:51:22 +07:00
1 parent 7db25bf19b
commit 5d85fcbb17
1 file changed
+2 -1
+2 -1
View File
@@ -553,9 +553,10 @@ def api_reset():
try:
Path(CURRENT_BATCH_PATH).unlink(missing_ok=True)
Path(str(CURRENT_BATCH_PATH) + ".reset").touch()
Path(LIVE_STREAM_FRAME_PATH).unlink(missing_ok=True)
except Exception:
pass
return jsonify({"success": True, "message": "State file cleared"})
return jsonify({"success": True, "message": "State + live frame cleared"})
if __name__ == "__main__":