コード例 #1
0
ファイル: main.py プロジェクト: jeanmichelem/foosball
def index():
    players = Player.find()
    return render_template('index.html', players=players)
コード例 #2
0
ファイル: test_db.py プロジェクト: jeanmichelem/foosball
 def test_find(self):
     Player.create({"name": "test", "surname": "test"})
     players = Player.find()
     self.assertGreater(len(players), 0, "Players array should be greater than zero")