From 849575d46fc2b0e43d222f7ec83607b793b6e64c Mon Sep 17 00:00:00 2001 From: "tangshuangpku@hotmail.com" Date: Tue, 7 Jun 2016 02:23: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, 1 insertion(+), 1 deletion(-) diff --git a/src/notificationmgr.py b/src/notificationmgr.py index 76525c4..36b84ed 100644 --- a/src/notificationmgr.py +++ b/src/notificationmgr.py @@ -61,7 +61,7 @@ class NotificationMgr: notifies = NotificationGroups.query.filter_by(group_name=group_name).all() notifies.extend(NotificationGroups.query.filter_by(group_name='all').all()) notify_ids = [notify.notification_id for notify in notifies] - notify_ids = sorted(list(set(notify_ids)), reversed=True) + notify_ids = sorted(list(set(notify_ids)), reverse=True) notify_simple_infos = [] for notify_id in notify_ids: notify = Notification.query.filter_by(id=notify_id).first()