diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-27 18:22:55 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-27 18:22:55 +0200 |
commit | a83a5447f67fc0eae8cf44a19d97de2c0f2ace45 (patch) | |
tree | c2b72711df6ee5f5a6aa15c619798348e9a12e5b /pyaggr3g470r/export.py | |
parent | Updated JSON export. (diff) | |
download | newspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.tar.gz newspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.tar.bz2 newspipe-a83a5447f67fc0eae8cf44a19d97de2c0f2ace45.zip |
Updated JSON export.
Diffstat (limited to 'pyaggr3g470r/export.py')
-rw-r--r-- | pyaggr3g470r/export.py | 6 |
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 ] |