Adds 'Create Copy' feature to clone a watch (#184)

This commit is contained in:
Matthias Langhard
2021-08-26 22:10:17 +02:00
committed by GitHub
parent 54d80ddea0
commit 05f7e123ed
3 changed files with 33 additions and 0 deletions

View File

@@ -766,6 +766,16 @@ def changedetection_app(config=None, datastore_o=None):
return redirect(url_for('index'))
@app.route("/api/clone", methods=['GET'])
@login_required
def api_clone():
uuid = request.args.get('uuid')
datastore.clone(uuid)
flash('Cloned.')
return redirect(url_for('index'))
@app.route("/api/checknow", methods=['GET'])
@login_required
def api_watch_checknow():