Messin with some other stuff

This commit is contained in:
iamBadgers
2026-04-09 18:36:51 -07:00
parent 917870128d
commit 69241d1c43
2 changed files with 27 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
from sqlite3 import Connection, Cursor
from database import SmartCursor
import random
class GameTable:
_game_table_id: int
@@ -39,6 +39,8 @@ class GameTable:
def commit(self, cursor):
if not self._created:
if self._game_table_id == 0:
self._game_table_id = random.randint(1, 999999999)
cursor.execute(
"""INSERT INTO game_tables
(game_table_id, game_table_name, game_table_link, active, docker_id)
@@ -67,7 +69,7 @@ class GameTable:
self._game_table_id,
),
)
self._updated = False
self._updated = True
return
@property