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:
b2d65ce
)
Hackaround for global snowflake.
author
CMDR furrycat
<elite@furrycat.net>
Wed, 11 Nov 2020 09:56:45 +0000
(09:56 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Wed, 11 Nov 2020 09:56:45 +0000
(09:56 +0000)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
a54114b
..
a50903b
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-84,7
+84,7
@@
def canonicalise(user):
def snowflake(id):
if id is None:
return None
- if id
== 'private'
:
+ if id
in ['global', 'private']
:
return id
try:
return int(id)