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:
e287fc6
)
臨時
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 10:31:44 +0000
(19:31 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 10:31:44 +0000
(19:31 +0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
a8dfecd
..
80cf8de
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-29,7
+29,8
@@
class WebHookHandler(tornado.web.RequestHandler):
w = now.weekday()
if (w < 5)and(t >= 9)and(t < 16):
return u'仕事中.'
- table = self.users(self.name)
+ #table = self.users(self.name)
+ table = pymongo.MongoClient(uri)[ac]['glove']
item = table.find({'no':re.compile(no,re.IGNORECASE)})
if item.count() == 1:
x = item[0]