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:
93883f5
)
trouble in creation
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 11:16:48 +0000
(20:16 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 3 Dec 2016 11:16:48 +0000
(20:16 +0900)
corrected
index.py
patch
|
blob
|
history
diff --git
a/index.py
b/index.py
index
85ed756
..
1d389c1
100755
(executable)
--- a/
index.py
+++ b/
index.py
@@
-24,7
+24,9
@@
class IndexHandler(BaseHandler):
self.render('mentenance.htm',title=params['title'],db=dbname)
if self.application.collection(dbname) == False:
if self.current_user == b'admin':
- self.application.db[dbname]
+ coll = self.application.db[dbname]
+ coll.insert({})
+ coll.remove({})
else:
raise tornado.web.HTTPError(404)
return