OSDN Git Service
(root)
/
simple-tornado-bot
/
simple-tornado-bot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f696c59
)
error collected
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 11:33:07 +0000
(20:33 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 11:33:07 +0000
(20:33 +0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
15704c1
..
c137446
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-63,7
+63,7
@@
class WebHookHandler(tornado.web.RequestHandler):
db = client['users']
item = db.find_one({'name':self.uid})
if not item:
- db.insert({'user':self.id, 'dbname':dbname})
+ db.insert({'user':self.
u
id, 'dbname':dbname})
elif item['dbname'] == dbname:
return False
else: