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/tag.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/tag.py')
-rw-r--r-- | newspipe/models/tag.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/newspipe/models/tag.py b/newspipe/models/tag.py index 0a0fe58c..02a6d29f 100644 --- a/newspipe/models/tag.py +++ b/newspipe/models/tag.py @@ -23,9 +23,8 @@ class ArticleTag(db.Model): self.text = text __table_args__ = ( - ForeignKeyConstraint([article_id], ['article.id'], - ondelete='CASCADE'), - Index('ix_articletag_aid', article_id), + ForeignKeyConstraint([article_id], ["article.id"], ondelete="CASCADE"), + Index("ix_articletag_aid", article_id), ) |