From d35e01f76249c8c8e5822aa017ad4ac4df0d5f77 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 24 Oct 2016 13:38:03 +0200 Subject: no need to specify an equality --- src/web/views/user.py | 2 +- src/web/views/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web') diff --git a/src/web/views/user.py b/src/web/views/user.py index 682e20ff..21427d3c 100644 --- a/src/web/views/user.py +++ b/src/web/views/user.py @@ -30,7 +30,7 @@ def profile_public(nickname=None): return redirect(url_for('home')) filters = {} - filters['private__eq'] = False + filters['private'] = False feeds = FeedController(user.id).read(**filters).all() """word_size = 6 diff --git a/src/web/views/views.py b/src/web/views/views.py index 8024b27d..250d221d 100644 --- a/src/web/views/views.py +++ b/src/web/views/views.py @@ -64,7 +64,7 @@ def popular(): filters = {} filters['created_date__gt'] = not_added_before - filters['private__eq'] = False + filters['private'] = False feeds = FeedController().count_by_link(**filters) sorted_feeds = sorted(list(feeds.items()), key=operator.itemgetter(1), reverse=True) -- cgit