OSDN Git Service

easy write
authoryamat0jp <yamat0jp@yahoo.co.jp>
Thu, 24 Nov 2016 11:46:15 +0000 (20:46 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Thu, 24 Nov 2016 11:46:15 +0000 (20:46 +0900)
__pycache__/index.cpython-35.pyc
index.py

index 298f4cb..123ed9a 100644 (file)
Binary files a/__pycache__/index.cpython-35.pyc and b/__pycache__/index.cpython-35.pyc differ
index 69744b8..18a2395 100755 (executable)
--- a/index.py
+++ b/index.py
@@ -270,11 +270,8 @@ class SearchHandler(tornado.web.RequestHandler):
         if self.application.collection(dbname) == False:
             raise tornado.web.HTTPError(404)
             return
-        word = self.get_cookie('search')
-        if word == None:
-            word = ''
-        else:
-            word = tornado.escape.url_unescape(word)
+        word = self.get_cookie('search','')
+        word = tornado.escape.url_unescape(word)
         self.render('modules/search.htm',records=[],word1=word,db=dbname)
         
     def search(self,name):