aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/export.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-27 18:22:55 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-27 18:22:55 +0200
commita83a5447f67fc0eae8cf44a19d97de2c0f2ace45 (patch)
treec2b72711df6ee5f5a6aa15c619798348e9a12e5b /pyaggr3g470r/export.py
parentUpdated JSON export. (diff)
downloadnewspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.tar.gz
newspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.tar.bz2
newspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.zip
Updated JSON export.
Diffstat (limited to 'pyaggr3g470r/export.py')
-rw-r--r--pyaggr3g470r/export.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/export.py b/pyaggr3g470r/export.py
index 812739f2..1341e58f 100644
--- a/pyaggr3g470r/export.py
+++ b/pyaggr3g470r/export.py
@@ -214,15 +214,15 @@ def export_json(user):
"site_link": feed.site_link,
"email_notification": feed.email_notification,
"enabled": feed.enabled,
- "created_date": feed.created_date,
+ "created_date": feed.created_date.strftime('%s'),
"articles": [ {
"title": article.title,
"link": article.link,
"content": article.content,
"readed": article.readed,
"like": article.like,
- "date": article.date,
- "retrieved_date": article.retrieved_date
+ "date": article.date.strftime('%s'),
+ "retrieved_date": article.retrieved_date.strftime('%s')
}
for article in feed.articles
]
bgstack15