Smart curosr for Game Tables
This commit is contained in:
@@ -82,11 +82,11 @@ class KeyService:
|
||||
FROM game_keys
|
||||
WHERE game_table_id IS NOT NULL""")
|
||||
rows = smartCursor.fetchall()
|
||||
|
||||
|
||||
return [KeyTable(row[0], row[1]) for row in rows]
|
||||
|
||||
def get_free_keys(self, cursor=None) -> KeyTable:
|
||||
with SmartCursor(cursor, connection) as smartCursor:
|
||||
with SmartCursor(cursor, self.connection) as smartCursor:
|
||||
smartCursor.execute("""SELECT key, game_table_id
|
||||
FROM game_keys
|
||||
WHERE game_table_id IS NULL""")
|
||||
|
||||
Reference in New Issue
Block a user