OSDN Git Service
(root)
/
pybbs
/
pybbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7835fb
)
Userdel corrected
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 19:34:14 +0000
(
04:34
+0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 19:34:14 +0000
(
04:34
+0900)
index.py
patch
|
blob
|
history
diff --git
a/index.py
b/index.py
index
e534a4a
..
12a3b92
100755
(executable)
--- a/
index.py
+++ b/
index.py
@@
-6,7
+6,6
@@
import tornado.escape
import tornado.web
import tornado.wsgi
from tinydb import TinyDB,Query,where
-from tinydb.storages import MemoryStorage
from tinydb.operations import delete
from datetime import datetime
@@
-255,6
+254,7
@@
class UserHandler(tornado.web.RequestHandler):
def post(self,dbname):
num = self.get_argument('number')
if num.isdigit() == True:
+ num = int(num)
pas = self.get_argument('password')
table = self.application.db.table(dbname)
qwr = Query()