diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-07-03 21:49:20 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-07-03 21:49:20 +0200 |
commit | 119a8f3e7c2dc0840312ee9e051b899e7b2c031d (patch) | |
tree | aa3167f93e823efa34894766a82d3d025cda8048 /newspipe/models/feed.py | |
parent | delete read articles retrieved since more than 15 days. (diff) | |
download | newspipe-119a8f3e7c2dc0840312ee9e051b899e7b2c031d.tar.gz newspipe-119a8f3e7c2dc0840312ee9e051b899e7b2c031d.tar.bz2 newspipe-119a8f3e7c2dc0840312ee9e051b899e7b2c031d.zip |
deleted read article (and not liked) that are retrieved since more than 15 days.
Diffstat (limited to 'newspipe/models/feed.py')
-rw-r--r-- | newspipe/models/feed.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/newspipe/models/feed.py b/newspipe/models/feed.py index 12622285..7e8d92ae 100644 --- a/newspipe/models/feed.py +++ b/newspipe/models/feed.py @@ -73,12 +73,11 @@ class Feed(db.Model, RightMixin): ) __table_args__ = ( - ForeignKeyConstraint([user_id], ['user.id'], ondelete='CASCADE'), - ForeignKeyConstraint([category_id], ['category.id'], - ondelete='CASCADE'), - ForeignKeyConstraint([icon_url], ['icon.url']), - Index('ix_feed_uid', user_id), - Index('ix_feed_uid_cid', user_id, category_id), + ForeignKeyConstraint([user_id], ["user.id"], ondelete="CASCADE"), + ForeignKeyConstraint([category_id], ["category.id"], ondelete="CASCADE"), + ForeignKeyConstraint([icon_url], ["icon.url"]), + Index("ix_feed_uid", user_id), + Index("ix_feed_uid_cid", user_id, category_id), ) # idx_feed_uid_cid = Index("user_id", "category_id") |