Use published when updated is None.
This commit is contained in:
parent
64ad0ca501
commit
9600d8f5b6
1 changed files with 3 additions and 0 deletions
|
@ -368,6 +368,9 @@ class BDBNewsMixin:
|
|||
elif updated is not None:
|
||||
published = updated
|
||||
|
||||
if updated is None and published is not None:
|
||||
updated = published
|
||||
|
||||
title = entry.find('title')
|
||||
if title:
|
||||
title = title.text.strip()
|
||||
|
|
Loading…
Reference in a new issue