aboutsummaryrefslogtreecommitdiff
path: root/newspipe
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe')
-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