close, but more
This commit is contained in:
@@ -59,7 +59,7 @@ def get_key_for_table(game_table_id, cursor):
|
||||
)
|
||||
row = cursor.fetchone()
|
||||
|
||||
if len(row) == 0:
|
||||
if row == None:
|
||||
return None
|
||||
|
||||
return KeyTable(row[0], row[1])
|
||||
|
||||
@@ -103,9 +103,9 @@ def deactivate_table(table_id):
|
||||
table.active = False
|
||||
if key != None:
|
||||
key.release()
|
||||
key.commit(cursor)
|
||||
|
||||
table.commit(cursor)
|
||||
key.commit(cursor)
|
||||
cursor.close()
|
||||
db.commit()
|
||||
return jsonify(table.toJson())
|
||||
|
||||
Reference in New Issue
Block a user