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