This commit is contained in:
iamBadgers
2026-03-28 00:39:44 -07:00
parent 97fb4546f9
commit 6a04981443
2 changed files with 3 additions and 6 deletions

View File

@@ -33,10 +33,7 @@ class GameTable:
"active": self._active,
}
def commit(self, app, cursor):
app.logger.info(self._created)
app.logger.info(self._updated)
app.logger.info(self._docker_id)
def commit(self, cursor):
if not self._created:
cursor.execute(
"""INSERT INTO game_tables

View File

@@ -88,7 +88,7 @@ def activate_table(table_id):
)
app.logger.info(table.docker_id)
keys[0].commit(cursor)
table.commit(app, cursor)
table.commit(cursor)
cursor.close()
db.commit()
return jsonify(table.toJson())
@@ -110,7 +110,7 @@ def deactivate_table(table_id):
key.release()
key.commit(cursor)
table.commit(app, cursor)
table.commit(cursor)
app.logger.info(table.docker_id)
container_managment.stop_container(table.docker_id)