Esempio n. 1
0
def get_all():
    return [Player.json(player) for player in Player.query.all()]
Esempio n. 2
0
def get_by_id(_id):
    return Player.json(Player.query.filter_by(id=_id).first())