예제 #1
0
파일: main.py 프로젝트: Leo-Hzau/Ershou
 def GET(self, p='10'):
     p = int(p)
     j.article = model.get_all_tag(p, tags='weifeng')
     j.page = model.get_tag(p, tags='weifeng')
     return render('weifeng',
                   title=webname,
                   gonggao_h=Gonggao_S,
                   footer=dibu,
                   info=fubiaoti,
                   homelink=weblink,
                   game=dwgame,
                   shuma=dwshuma,
                   weifeng=weifengs,
                   **j)
예제 #2
0
파일: main.py 프로젝트: zouchao2010/Ershou
 def GET(self, p='10'):
     p = int(p)
     j.article = model.get_all_tag(p, tags='weifeng')
     j.page = model.get_tag(p, tags='weifeng')
     return render('weifeng',
                   title=webname,
                   gonggao_h=Gonggao_S,
                   footer=dibu,
                   info=fubiaoti,
                   homelink=weblink,
                   game=dwgame,
                   shuma=dwshuma,
                   weifeng=weifengs,
                   **j)
예제 #3
0
파일: main.py 프로젝트: Leo-Hzau/Ershou
 def GET(self):
     conn = sqlite3.connect('./DB/ershou.db')
     #解决数据库不能查询中文问题
     conn.text_factory = str
     LjDB = conn.cursor()
     i = web.input(name=None)
     c = LjDB.execute("select * from caiji where post like ?",
                         ('%{}%'.format(i.name),))
     # return "Listing info about user:{0} ".i.name
     return render('search',
                   searchs=c,
                   title=webname,
                   gonggao_h=Gonggao_S,
                   footer=dibu,
                   info=fubiaoti,
                   homelink=weblink,
                   game=dwgame,
                   shuma=dwshuma,
                   weifeng=weifengs,)
예제 #4
0
파일: main.py 프로젝트: zouchao2010/Ershou
 def GET(self):
     conn = sqlite3.connect('./DB/ershou.db')
     #解决数据库不能查询中文问题
     conn.text_factory = str
     LjDB = conn.cursor()
     i = web.input(name=None)
     c = LjDB.execute("select * from caiji where post like ?",
                      ('%{}%'.format(i.name), ))
     # return "Listing info about user:{0} ".i.name
     return render(
         'search',
         searchs=c,
         title=webname,
         gonggao_h=Gonggao_S,
         footer=dibu,
         info=fubiaoti,
         homelink=weblink,
         game=dwgame,
         shuma=dwshuma,
         weifeng=weifengs,
     )