Use published when updated is None.

This commit is contained in:
voussoir 2022-07-15 22:33:36 -07:00
parent 64ad0ca501
commit 9600d8f5b6
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -368,6 +368,9 @@ class BDBNewsMixin:
elif updated is not None: elif updated is not None:
published = updated published = updated
if updated is None and published is not None:
updated = published
title = entry.find('title') title = entry.find('title')
if title: if title:
title = title.text.strip() title = title.text.strip()