close, but more

This commit is contained in:
iamBadgers
2026-03-24 01:16:58 -07:00
parent b91f94956a
commit d9c9dad905
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ def get_key_for_table(game_table_id, cursor):
) )
row = cursor.fetchone() row = cursor.fetchone()
if len(row) == 0: if row == None:
return None return None
return KeyTable(row[0], row[1]) return KeyTable(row[0], row[1])

View File

@@ -103,9 +103,9 @@ def deactivate_table(table_id):
table.active = False table.active = False
if key != None: if key != None:
key.release() key.release()
key.commit(cursor)
table.commit(cursor) table.commit(cursor)
key.commit(cursor)
cursor.close() cursor.close()
db.commit() db.commit()
return jsonify(table.toJson()) return jsonify(table.toJson())