From: Thorsten Date: Sun, 7 Oct 2018 19:17:15 +0000 (+0200) Subject: fix last_dsa_date (which is also just a number as string) X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=fcad1f99fbf8132bad439f5052a4a6a310b34327;p=urlbot-v3.git fix last_dsa_date (which is also just a number as string) --- diff --git a/distbot/plugins/feeds.py b/distbot/plugins/feeds.py index 91b720d..eac2154 100644 --- a/distbot/plugins/feeds.py +++ b/distbot/plugins/feeds.py @@ -70,6 +70,7 @@ class DSAWatcher(Worker): last_dsa_date = conf_get('plugins.dsa-watcher.last_dsa_date') if last_dsa_date: + last_dsa_date = float(last_dsa_date) since = datetime.fromtimestamp(last_dsa_date) else: since = datetime.today() - timedelta(days=3)