|
|
|
@ -598,9 +598,9 @@ class ChangeDetectionStore:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check if the previous.txt exists
|
|
|
|
|
if not os.path.exists(os.path.join(self.datastore_path, uuid, "previous.txt")):
|
|
|
|
|
if not os.path.exists(os.path.join(watch.watch_data_dir, "previous.txt")):
|
|
|
|
|
# Generate a previous.txt
|
|
|
|
|
with open(os.path.join(self.datastore_path, uuid, "previous.txt"), "wb") as f:
|
|
|
|
|
with open(os.path.join(watch.watch_data_dir, "previous.txt"), "wb") as f:
|
|
|
|
|
# Fill it with the latest history
|
|
|
|
|
latest_file_name = watch.history[watch.newest_history_key]
|
|
|
|
|
with open(latest_file_name, "rb") as f2:
|
|
|
|
|