|
|
|
@ -877,9 +877,9 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
flash("No history found for the specified link, bad link?", "error")
|
|
|
|
|
return redirect(url_for('index'))
|
|
|
|
|
|
|
|
|
|
if watch.history_n >0:
|
|
|
|
|
timestamps = sorted(watch.history.keys(), key=lambda x: int(x))
|
|
|
|
|
filename = watch.history[timestamps[-1]]
|
|
|
|
|
|
|
|
|
|
timestamp = list(watch.history.keys())[-1]
|
|
|
|
|
filename = watch.history[timestamp]
|
|
|
|
|
try:
|
|
|
|
|
with open(filename, 'r') as f:
|
|
|
|
|
tmp = f.readlines()
|
|
|
|
@ -908,11 +908,9 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
classes.append('triggered')
|
|
|
|
|
content.append({'line': l, 'classes': ' '.join(classes)})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
content.append({'line': "File doesnt exist or unable to read file {}".format(filename), 'classes': ''})
|
|
|
|
|
else:
|
|
|
|
|
content.append({'line': "No history found", 'classes': ''})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
screenshot_url = datastore.get_screenshot(uuid)
|
|
|
|
|
system_uses_webdriver = datastore.data['settings']['application']['fetch_backend'] == 'html_webdriver'
|
|
|
|
|