Playing with volumes

This commit is contained in:
iamBadgers
2026-04-14 23:05:48 -07:00
parent 2194d78ba7
commit aa90ef14c3
3 changed files with 6 additions and 4 deletions

View File

@@ -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)