Playing with volumes
This commit is contained in:
@@ -52,8 +52,9 @@ class GameTable:
|
||||
|
||||
def commit(self, cursor):
|
||||
if not self._created:
|
||||
if self._game_table_id == 0:
|
||||
self._game_table_id = random.randint(1, 999999999)
|
||||
|
||||
self._game_table_id = cursor.execute("""SELECT MAX(game_table_id) + 1 FROM game_tables""").fetchone()[0]
|
||||
|
||||
cursor.execute(
|
||||
"""INSERT INTO game_tables
|
||||
(game_table_id, game_table_name, game_table_link, version, active, docker_id)
|
||||
|
||||
Reference in New Issue
Block a user