X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/ab6966baf120f059c56d1f3185e65988e2adbb0b..c0410252b82b4b696df5541637c06756ea0489aa:/scan-feeds.py?ds=inline 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