aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models/feed.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-07-03 11:49:28 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-03 15:01:23 +0200
commit1513cd97911fdf4500ae17f7e8ee6d90ac4bac84 (patch)
treeb66771229ecbffdf3e784859b33dcf65aaf0d603 /pyaggr3g470r/models/feed.py
parentMinor improvements to the edit feed forms. (diff)
downloadnewspipe-1513cd97911fdf4500ae17f7e8ee6d90ac4bac84.tar.gz
newspipe-1513cd97911fdf4500ae17f7e8ee6d90ac4bac84.tar.bz2
newspipe-1513cd97911fdf4500ae17f7e8ee6d90ac4bac84.zip
the icon feature
* icon of feeds is now an url retrieved from the feed or the site link * the icon is displayed in the home page making it visually easier to read * the http crawler is in charge of keeping it up to date
Diffstat (limited to 'pyaggr3g470r/models/feed.py')
-rw-r--r--pyaggr3g470r/models/feed.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/models/feed.py b/pyaggr3g470r/models/feed.py
index 793642fb..75e55df1 100644
--- a/pyaggr3g470r/models/feed.py
+++ b/pyaggr3g470r/models/feed.py
@@ -43,6 +43,7 @@ class Feed(db.Model):
enabled = db.Column(db.Boolean(), default=True)
created_date = db.Column(db.DateTime(), default=datetime.now)
filters = db.Column(db.PickleType, default=[])
+ icon = db.Column(db.String(), default="")
# cache handling
etag = db.Column(db.String(), default="")
@@ -70,6 +71,7 @@ class Feed(db.Model):
"link": self.link,
"site_link": self.site_link,
"etag": self.etag,
+ "icon": self.icon,
"error_count": self.error_count,
"last_modified": self.last_modified,
"last_retrieved": self.last_retrieved}
bgstack15