|
|
|
@ -1364,13 +1364,14 @@ def changedetection_app(config=None, datastore_o=None):
|
|
|
|
|
flash("{} watches set to use default notification settings".format(len(uuids)))
|
|
|
|
|
|
|
|
|
|
elif (op == 'assign-tag'):
|
|
|
|
|
op_extradata = request.form.get('op_extradata')
|
|
|
|
|
tag_uuid = datastore.add_tag(name=op_extradata)
|
|
|
|
|
if op_extradata and tag_uuid:
|
|
|
|
|
for uuid in uuids:
|
|
|
|
|
uuid = uuid.strip()
|
|
|
|
|
if datastore.data['watching'].get(uuid):
|
|
|
|
|
datastore.data['watching'][uuid]['tags'].append(tag_uuid)
|
|
|
|
|
op_extradata = request.form.get('op_extradata', '').strip()
|
|
|
|
|
if op_extradata:
|
|
|
|
|
tag_uuid = datastore.add_tag(name=op_extradata)
|
|
|
|
|
if op_extradata and tag_uuid:
|
|
|
|
|
for uuid in uuids:
|
|
|
|
|
uuid = uuid.strip()
|
|
|
|
|
if datastore.data['watching'].get(uuid):
|
|
|
|
|
datastore.data['watching'][uuid]['tags'].append(tag_uuid)
|
|
|
|
|
|
|
|
|
|
flash("{} watches assigned tag".format(len(uuids)))
|
|
|
|
|
|
|
|
|
|