From aa3e3d6c35fbdf6a1c4ad43a8ccc2248e7562865 Mon Sep 17 00:00:00 2001 From: dsutanto Date: Mon, 3 Aug 2026 16:00:26 +0700 Subject: [PATCH] Some Fixes. Reset problem --- counter_dashboard.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/counter_dashboard.py b/counter_dashboard.py index 273dcdb..3f0b00a 100644 --- a/counter_dashboard.py +++ b/counter_dashboard.py @@ -580,7 +580,13 @@ def api_reset(): print(f"[{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] Reset SHM error: {e}") return jsonify({"success": False, "error": f"SHM reset failed: {e}"}), 500 - return jsonify({"success": True, "message": "State + live frame cleared"}) + reset_path = f"{SHM_DIR}/.reset" + return jsonify({ + "success": True, + "message": "State + live frame cleared", + "shm_reset": reset_path, + "shm_exists": Path(reset_path).exists(), + }) if __name__ == "__main__":