OSDN Git Service

Userdel corrected
authoryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 19:34:14 +0000 (04:34 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 19:34:14 +0000 (04:34 +0900)
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()