mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-03 06:42:34 +00:00
changed get_previous_text to not create the file if it does not exist
This commit is contained in:
@@ -177,8 +177,7 @@ class model(dict):
|
||||
output_path = "{}/{}".format(self.__datastore_path, self['uuid'])
|
||||
|
||||
snapshot_fname = "{}/previous.txt".format(output_path)
|
||||
if not path.isfile(snapshot_fname):
|
||||
self.save_previous_text(b'')
|
||||
if self.history_n < 1:
|
||||
return ""
|
||||
|
||||
with open(snapshot_fname, 'rb') as f:
|
||||
|
||||
Reference in New Issue
Block a user