Beispiel #1
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)
Beispiel #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)
Beispiel #3
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,)
Beispiel #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,
     )