添加新接口

This commit is contained in:
tangshuangpku@hotmail.com 2016-06-07 01:05:55 +08:00
parent 40520d4046
commit d283701ddf
1 changed files with 2 additions and 0 deletions

View File

@ -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()