Skip to content

Commit 3676aff

Browse files
committed
fix: also clear dashboard state on empty-remote in route path
1 parent 39f3b6b commit 3676aff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/modules/speedtest/routes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def api_speedtest():
126126
# Remote is reachable but empty — server was wiped
127127
log.info("Remote has no results but cache has %d, clearing", cached_count)
128128
ss.clear_cache()
129+
from app.web import clear_speedtest_latest
130+
clear_speedtest_latest()
129131
cached_count = 0
130132
elif remote_latest and remote_latest[0].get("id", 0) < last_id:
131133
log.info(

0 commit comments

Comments
 (0)