|
|
@ -223,7 +223,6 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
def index():
|
|
|
|
def index():
|
|
|
|
limit_tag = request.args.get('tag')
|
|
|
|
limit_tag = request.args.get('tag')
|
|
|
|
|
|
|
|
|
|
|
|
pause_uuid = request.args.get('pause')
|
|
|
|
pause_uuid = request.args.get('pause')
|
|
|
|
|
|
|
|
|
|
|
|
if pause_uuid:
|
|
|
|
if pause_uuid:
|
|
|
@ -279,7 +278,11 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
return response
|
|
|
|
return response
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|
|
|
|
from backend import forms
|
|
|
|
|
|
|
|
form = forms.quickWatchForm(request.form)
|
|
|
|
|
|
|
|
|
|
|
|
output = render_template("watch-overview.html",
|
|
|
|
output = render_template("watch-overview.html",
|
|
|
|
|
|
|
|
form=form,
|
|
|
|
watches=sorted_watches,
|
|
|
|
watches=sorted_watches,
|
|
|
|
tags=existing_tags,
|
|
|
|
tags=existing_tags,
|
|
|
|
active_tag=limit_tag,
|
|
|
|
active_tag=limit_tag,
|
|
|
@ -729,6 +732,10 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
@app.route("/api/add", methods=['POST'])
|
|
|
|
@app.route("/api/add", methods=['POST'])
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
def api_watch_add():
|
|
|
|
def api_watch_add():
|
|
|
|
|
|
|
|
from backend import forms
|
|
|
|
|
|
|
|
form = forms.quickWatchForm(request.form)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if form.validate():
|
|
|
|
|
|
|
|
|
|
|
|
url = request.form.get('url').strip()
|
|
|
|
url = request.form.get('url').strip()
|
|
|
|
if datastore.url_exists(url):
|
|
|
|
if datastore.url_exists(url):
|
|
|
@ -742,6 +749,9 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
|
|
|
|
|
|
|
flash("Watch added.")
|
|
|
|
flash("Watch added.")
|
|
|
|
return redirect(url_for('index'))
|
|
|
|
return redirect(url_for('index'))
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
flash("Error")
|
|
|
|
|
|
|
|
return redirect(url_for('index'))
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/api/delete", methods=['GET'])
|
|
|
|
@app.route("/api/delete", methods=['GET'])
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|