Messin with some other stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user