aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-11-20 15:24:29 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-11-20 15:24:29 +0100
commitec098abea86fa93946a5282a155af29ae16d56f0 (patch)
tree45c5166aef8fee4344cd5257ff6f21b99d6aef26
parentchg: [view] Articles are now ordered by date on the public users's stream page. (diff)
downloadnewspipe-ec098abea86fa93946a5282a155af29ae16d56f0.tar.gz
newspipe-ec098abea86fa93946a5282a155af29ae16d56f0.tar.bz2
newspipe-ec098abea86fa93946a5282a155af29ae16d56f0.zip
uncomment Indexes
-rw-r--r--newspipe/models/article.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/newspipe/models/article.py b/newspipe/models/article.py
index 50afd067..611f5cb1 100644
--- a/newspipe/models/article.py
+++ b/newspipe/models/article.py
@@ -63,12 +63,12 @@ class Article(db.Model, RightMixin):
tags = association_proxy("tag_objs", "text")
# indexes
- # __table_args__ = (
- # Index('user_id'),
- # Index('user_id', 'category_id'),
- # Index('user_id', 'feed_id'),
- # Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id)
- # )
+ __table_args__ = (
+ Index('user_id'),
+ Index('user_id', 'category_id'),
+ Index('user_id', 'feed_id'),
+ Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id)
+ )
# api whitelists
@staticmethod
bgstack15