示例#1
0
 def get(self, game_id):
     game = database.get_game(game_id)
     result = {
         'name': game.name,
         'desc': game.desc,
         'cover_img': game.cover_img,
         'bin_path': game.bin_path
     }
     return result
示例#2
0
def game(game_id=None):
    if game_id is None:
        game_id = 1
    game = database.get_game(game_id)
    return render_template("item.html", game=game)