mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-28 16:26:42 +00:00
Document technical debt
This commit is contained in:
@@ -330,6 +330,10 @@ class model(dict):
|
||||
|
||||
self.ensure_data_dir_exists()
|
||||
|
||||
# Because our history.txt is very primitive, we cant have repeating timestamps, so add a delay here.
|
||||
# @todo something smarter
|
||||
time.sleep(1)
|
||||
|
||||
# Small hack so that we sleep just enough to allow 1 second between history snapshots
|
||||
# this is because history.txt indexes/keys snapshots by epoch seconds and we dont want dupe keys
|
||||
if self.__newest_history_key and int(timestamp) == int(self.__newest_history_key):
|
||||
|
||||
Reference in New Issue
Block a user