|
|
|
@ -663,7 +663,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
uuids = request.form.get('uuids')
|
|
|
|
|
|
|
|
|
|
if uuids == '' :
|
|
|
|
|
flash("No watches selected.", "notice")
|
|
|
|
|
flash("No watches selected.")
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
|
|
|
|
|
@ -684,9 +684,8 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
except KeyError :
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
flash("{} watch{} {} rechecking.".format(i, "" if (i == 1) else "es", "is" if (i == 1) else "are"), "notice")
|
|
|
|
|
#flash("{} watches are rechecking.".format(i))
|
|
|
|
|
|
|
|
|
|
flash("{0} watch{1} {2} rechecking.".format(i, "" if i == 1 else "es", "is" if i == 1 else "are"))
|
|
|
|
|
|
|
|
|
|
# Clear selected statuses, so we do not see the 'unviewed' class
|
|
|
|
|
elif func == 'mark_selected_viewed' :
|
|
|
|
|
|
|
|
|
@ -755,15 +754,14 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
|
|
|
|
|
datastore.needs_write = True
|
|
|
|
|
|
|
|
|
|
flash("{} {} deleted.".format(i, "watch was" if (i) == 1 else "watches were"), "notice")
|
|
|
|
|
flash("{0} {1} deleted.".format(i, "watch was" if (i) == 1 else "watches were"))
|
|
|
|
|
|
|
|
|
|
else :
|
|
|
|
|
|
|
|
|
|
flash("Invalid parameter received.", "error")
|
|
|
|
|
flash("Invalid parameter received.")
|
|
|
|
|
|
|
|
|
|
render_template(url_for('index'), tag = limit_tag)
|
|
|
|
|
return index()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/diff/<string:uuid>", methods=['GET'])
|
|
|
|
|
@login_required
|
|
|
|
|
def diff_history_page(uuid):
|
|
|
|
@ -939,7 +937,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
if add_paused :
|
|
|
|
|
datastore.data['watching'][new_uuid]['paused'] = True
|
|
|
|
|
datastore.needs_write = True
|
|
|
|
|
flash("Watch added in a paused state.", "notice")
|
|
|
|
|
flash("Watch added in a paused state.")
|
|
|
|
|
|
|
|
|
|
else : # watch now
|
|
|
|
|
# Straight into the queue.
|
|
|
|
@ -1005,12 +1003,11 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
else:
|
|
|
|
|
# No tag, no uuid, add everything.
|
|
|
|
|
for watch_uuid, watch in datastore.data['watching'].items():
|
|
|
|
|
|
|
|
|
|
if watch_uuid not in running_uuids and not datastore.data['watching'][watch_uuid]['paused']:
|
|
|
|
|
update_q.put(watch_uuid)
|
|
|
|
|
i += 1
|
|
|
|
|
|
|
|
|
|
#flash("{} watch{} {} rechecking.".format(i, "" if (i == 1) else "es", "is" if (i == 1) else "are"), "notice")
|
|
|
|
|
flash("{} watches are rechecking.".format(i))
|
|
|
|
|
flash("{0} watch{1} {2} rechecking.".format(i, "" if i == 1 else "es", "is" if i == 1 else "are"))
|
|
|
|
|
return redirect(url_for('index', tag=tag))
|
|
|
|
|
|
|
|
|
|
# @todo handle ctrl break
|
|
|
|
@ -1024,6 +1021,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
|
|
|
|
|
return app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check for new version and anonymous stats
|
|
|
|
|
def check_for_new_version():
|
|
|
|
|
import requests
|
|
|
|
|