X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/ab6966baf120f059c56d1f3185e65988e2adbb0b..022f18d9ce34ddca67df98564c3422b2d472d5d9:/scan-feeds.py diff --git a/scan-feeds.py b/scan-feeds.py index 7e27b8c..bf60aef 100755 --- a/scan-feeds.py +++ b/scan-feeds.py @@ -21,9 +21,9 @@ def parse_published(pub): return parse(pub).astimezone(tz.tzlocal()).replace(tzinfo=None) def get_date(post): - if 'published' in post: - return post.published - return post.updated + for k in ('published', 'created', 'updated'): + if k in post: + return post[k] def get_link(post): return post.link