close, but more
This commit is contained in:
@@ -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])
|
||||||
|
|||||||
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user