From d283701ddf87356471177c60eb466b7176c54dbc Mon Sep 17 00:00:00 2001 From: "tangshuangpku@hotmail.com" Date: Tue, 7 Jun 2016 01:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/notificationmgr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/notificationmgr.py b/src/notificationmgr.py index 235188b..36d5e88 100644 --- a/src/notificationmgr.py +++ b/src/notificationmgr.py @@ -31,6 +31,8 @@ class NotificationMgr: # groups = json.loads(form['groups']) # for group_name in groups: for group_name in form['groups']: + if group_name == 'none': + continue notify_groups = NotificationGroups(notify.id, group_name) db.session.add(notify_groups) db.session.commit()