From 05f8bbb3e366608f24bc0d1cdc3291a24147a722 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Fri, 21 Oct 2016 15:59:29 +0100 Subject: [PATCH] Fixed not updating last_spoke when we should have. --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 6aa17f0..bd016b6 100755 --- a/bot.py +++ b/bot.py @@ -1599,7 +1599,8 @@ def announce(announcement): else: log.info("Didn't bother with announcement {}".format(announcement['id'])) # Set last_spoke even if we chose not to announce. - update['digest'] = digest + if digest is not None: + update['digest'] = digest db.update_announcement(client, announcement['id'], **update) if not announce: return -- 2.7.4