Beispiel #1
0
 def get_all_ids():
     rows = db.db_fetch_all(gametime.DATABASE_FILENAME, "SELECT id FROM MyGame")
     return [row["id"] for row in rows]
Beispiel #2
0
 def get_all():
     rows = db.db_fetch_all(gametime.DATABASE_FILENAME, "SELECT * FROM MyGame")
     return [db.get_generic(MyGame(), row, False) for row in rows]