set up some initial work around starting a foundry container

This commit is contained in:
iamBadgers
2026-03-29 01:31:13 -07:00
parent 6a04981443
commit d71d698888
3 changed files with 68 additions and 20 deletions

View File

@@ -84,6 +84,15 @@ class GameTable:
self._updated = False
self._game_table_name = game_table_name
@property
def game_table_link(self):
return self._game_table_link
@game_table_link.setter
def game_table_link(self, game_table_link):
self._updated = False
self._game_table_link = game_table_link
@property
def active(self):
return self._active
@@ -121,11 +130,15 @@ def read_all(cursor):
rows = cursor.execute(
"SELECT game_table_id, game_table_name, game_table_link, active, docker_id FROM game_tables"
).fetchall()
return [GameTable(row[0], row[1], row[2], row[3], row[4], True, True) for row in rows]
return [
GameTable(row[0], row[1], row[2], row[3], row[4], True, True) for row in rows
]
def read_active(cursor):
rows = cursor.execute(
"SELECT game_table_id, game_table_name, game_table_link, active, docker_id FROM game_tables WHERE active != 0"
).fetchall()
return [GameTable(row[0], row[1], row[2], row[3], row[4],True, True) for row in rows]
return [
GameTable(row[0], row[1], row[2], row[3], row[4], True, True) for row in rows
]