diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 10:59:08 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-13 10:59:08 +0100 |
commit | 646640da5cec286ed59a99af8039f5f5feabec47 (patch) | |
tree | 4c9377e5f2f532e815fa1745c3958c1965764c1d /src/web/models | |
parent | The OPML generation now includes the category of the feeds. (diff) | |
download | newspipe-646640da5cec286ed59a99af8039f5f5feabec47.tar.gz newspipe-646640da5cec286ed59a99af8039f5f5feabec47.tar.bz2 newspipe-646640da5cec286ed59a99af8039f5f5feabec47.zip |
The date of modification of articles is now used to detect changes.
Diffstat (limited to 'src/web/models')
-rw-r--r-- | src/web/models/article.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/models/article.py b/src/web/models/article.py index 6c2df462..3f1db731 100644 --- a/src/web/models/article.py +++ b/src/web/models/article.py @@ -41,6 +41,7 @@ class Article(db.Model): readed = db.Column(db.Boolean(), default=False) like = db.Column(db.Boolean(), default=False) date = db.Column(db.DateTime(), default=datetime.now) + updated_date = db.Column(db.DateTime(), default=datetime.now) retrieved_date = db.Column(db.DateTime(), default=datetime.now) user_id = db.Column(db.Integer(), db.ForeignKey('user.id')) @@ -78,6 +79,7 @@ class Article(db.Model): "readed": self.readed, "like": self.like, "date": self.date, + "updated_date": self.updated_date, "retrieved_date": self.retrieved_date, "feed_id": self.feed_id, "category_id": self.category_id} |