diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-24 13:38:03 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-24 13:38:03 +0200 |
commit | d35e01f76249c8c8e5822aa017ad4ac4df0d5f77 (patch) | |
tree | a91d25778ec504977f740abc361aaca15412fae1 | |
parent | add the possibility to mak a feed as private (diff) | |
download | newspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.tar.gz newspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.tar.bz2 newspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.zip |
no need to specify an equality
-rw-r--r-- | src/web/views/user.py | 2 | ||||
-rw-r--r-- | src/web/views/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
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) |