Watch history - Don't rescan whole history.txt when looking up a timestamp <->filepath (#3602)

This commit is contained in:
dgtlmoon
2025-11-05 18:50:27 +01:00
committed by GitHub
parent 2f6873f7d5
commit a8d5ea067d
12 changed files with 33 additions and 25 deletions

View File

@@ -175,7 +175,7 @@ class WatchSingleHistory(Resource):
response = make_response("No content found", 404)
response.mimetype = "text/plain"
else:
content = watch.get_history_snapshot(timestamp)
content = watch.get_history_snapshot(timestamp=timestamp)
response = make_response(content, 200)
response.mimetype = "text/plain"