aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-24 13:38:03 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-24 13:38:03 +0200
commitd35e01f76249c8c8e5822aa017ad4ac4df0d5f77 (patch)
treea91d25778ec504977f740abc361aaca15412fae1 /src
parentadd the possibility to mak a feed as private (diff)
downloadnewspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.tar.gz
newspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.tar.bz2
newspipe-d35e01f76249c8c8e5822aa017ad4ac4df0d5f77.zip
no need to specify an equality
Diffstat (limited to 'src')
-rw-r--r--src/web/views/user.py2
-rw-r--r--src/web/views/views.py2
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)
bgstack15