示例#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
 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
 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,
     )