UI - Remove unique check for URLs entered on the "quick watch add" form ( #2286 #2292 )

pull/2305/head
dgtlmoon 1 month ago committed by GitHub
parent 56b365df40
commit daef1cd036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1293,9 +1293,8 @@ def changedetection_app(config=None, datastore_o=None):
url = request.form.get('url').strip()
if datastore.url_exists(url):
flash('The URL {} already exists'.format(url), "error")
return redirect(url_for('index'))
flash(f'Warning, URL {url} already exists', "notice")
add_paused = request.form.get('edit_and_watch_submit_button') != None
processor = request.form.get('processor', 'text_json_diff')
new_uuid = datastore.add_watch(url=url, tag=request.form.get('tags').strip(), extras={'paused': add_paused, 'processor': processor})

Loading…
Cancel
Save