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:
92d9b62
)
lower()
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 20:23:02 +0000
(
05:23
+0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 20:23:02 +0000
(
05:23
+0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
5546a15
..
5f872b8
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-53,6
+53,7
@@
class WebHookHandler(tornado.web.RequestHandler):
return ans
def setting(self, dbname):
+ dbname = dbname.lower()
if dbname in self.database.collection_names(include_system_collections=False):
db = self.database['users']
item = db.find_one({'name':self.uid})