diff --git a/src/game_tables.py b/src/game_tables.py index ded39fb..15dd41c 100644 --- a/src/game_tables.py +++ b/src/game_tables.py @@ -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 diff --git a/src/main.py b/src/main.py index 3b02e3c..e718116 100644 --- a/src/main.py +++ b/src/main.py @@ -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)