You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two possible fallbacks for the feed date that are missing:
the entry's created date field
the feed itself's updated date field
in my code, I worked around this by doing this in a loop when processing entries:
# add more defaults to entry dates:# 1. created_parsed of the item# 2. updated_parsed of the feedentry['updated_parsed'] =entry.get('updated_parsed', entry.get('created_parsed', data['feed'].get('updated_parsed', False))) # noqaassertentry.get('updated_parsed') isnotNone
quite a mouthful... it seems to me the entry getter should at least add created as a fallback, but also use the feed's updated date as a fallback as well...
is there a better way to do this? or to monkeypatch around that issue in a cleaner way?
thanks!
The text was updated successfully, but these errors were encountered:
There are two possible fallbacks for the feed date that are missing:
createddate fieldupdateddate fieldin my code, I worked around this by doing this in a loop when processing entries:
quite a mouthful... it seems to me the entry getter should at least add
createdas a fallback, but also use the feed's updated date as a fallback as well...is there a better way to do this? or to monkeypatch around that issue in a cleaner way?
thanks!
The text was updated successfully, but these errors were encountered: