This commit is contained in:
iamBadgers
2026-04-03 23:39:08 -07:00
parent bc95e49269
commit cb5c08b92c
2 changed files with 42 additions and 32 deletions

View File

@@ -98,12 +98,14 @@ def activate_table(table_id):
def deactivate_table(table_id):
db = get_db()
cursor = db.cursor()
table = game_tables.read_by_id(table_id, cursor)
key = key_tables.get_key_for_table(table_id, cursor)
if table == None:
"No such table", 404
return "No such table", 404
if not table.active:
return "Table not active", 400
table.active = False
if key != None: