From 9600d8f5b665371c86c8a95656b4acddbfbeb77f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 15 Jul 2022 22:33:36 -0700 Subject: [PATCH] Use published when updated is None. --- bringrss/bringdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bringrss/bringdb.py b/bringrss/bringdb.py index d73a753..0ca37fb 100644 --- a/bringrss/bringdb.py +++ b/bringrss/bringdb.py @@ -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()