添加新接口
This commit is contained in:
parent
40520d4046
commit
d283701ddf
|
@ -31,6 +31,8 @@ class NotificationMgr:
|
||||||
# groups = json.loads(form['groups'])
|
# groups = json.loads(form['groups'])
|
||||||
# for group_name in groups:
|
# for group_name in groups:
|
||||||
for group_name in form['groups']:
|
for group_name in form['groups']:
|
||||||
|
if group_name == 'none':
|
||||||
|
continue
|
||||||
notify_groups = NotificationGroups(notify.id, group_name)
|
notify_groups = NotificationGroups(notify.id, group_name)
|
||||||
db.session.add(notify_groups)
|
db.session.add(notify_groups)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
Loading…
Reference in New Issue