git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
222f641
)
Fixed not updating last_spoke when we should have.
author
CMDR furrycat
<elite@furrycat.net>
Fri, 21 Oct 2016 14:59:29 +0000
(15:59 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Fri, 21 Oct 2016 15:00:42 +0000
(16:00 +0100)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
6aa17f0
..
bd016b6
100755
(executable)
--- 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