Delete State File and Live Stream File
This commit is contained in:
1 parent
7db25bf19b
commit
5d85fcbb17
1 file changed
+2
-1
@@ -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__":
|
||||
|
||||
Reference in new issue
Block a user