From 5d85fcbb17dfbe045fad3704ae380e165c2f3226 Mon Sep 17 00:00:00 2001 From: dsutanto Date: Wed, 29 Jul 2026 15:51:22 +0700 Subject: [PATCH] Delete State File and Live Stream File --- counter_dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/counter_dashboard.py b/counter_dashboard.py index a568a59..f2eea24 100644 --- a/counter_dashboard.py +++ b/counter_dashboard.py @@ -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__":