From: CMDR furrycat Date: Fri, 21 Oct 2016 14:59:29 +0000 (+0100) Subject: Fixed not updating last_spoke when we should have. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=05f8bbb3e366608f24bc0d1cdc3291a24147a722;p=furrycat%2Fcatbot.git Fixed not updating last_spoke when we should have. --- 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