changeset 5974:c7dc1c7ace67

notifications: convert the last get_for_user to query_for_user - this one was missed in 85bb68f64597
author Mads Kiilerich <madski@unity3d.com>
date Wed, 15 Jun 2016 21:53:13 +0200
parents 7253d9974bbe
children d9e6e489f171
files kallithea/controllers/admin/notifications.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/admin/notifications.py	Wed Jun 15 21:53:08 2016 +0200
+++ b/kallithea/controllers/admin/notifications.py	Wed Jun 15 21:53:13 2016 +0200
@@ -87,8 +87,8 @@
                                       filter_=request.GET.getall('type'))
             Session().commit()
             c.user = self.authuser
-            notif = nm.get_for_user(self.authuser.user_id,
-                                    filter_=request.GET.getall('type'))
+            notif = nm.query_for_user(self.authuser.user_id,
+                                      filter_=request.GET.getall('type'))
             c.notifications = Page(notif, page=1, items_per_page=10)
             return render('admin/notifications/notifications_data.html')