stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user