stuff
This commit is contained in:
@@ -33,10 +33,7 @@ class GameTable:
|
|||||||
"active": self._active,
|
"active": self._active,
|
||||||
}
|
}
|
||||||
|
|
||||||
def commit(self, app, cursor):
|
def commit(self, cursor):
|
||||||
app.logger.info(self._created)
|
|
||||||
app.logger.info(self._updated)
|
|
||||||
app.logger.info(self._docker_id)
|
|
||||||
if not self._created:
|
if not self._created:
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
"""INSERT INTO game_tables
|
"""INSERT INTO game_tables
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ def activate_table(table_id):
|
|||||||
)
|
)
|
||||||
app.logger.info(table.docker_id)
|
app.logger.info(table.docker_id)
|
||||||
keys[0].commit(cursor)
|
keys[0].commit(cursor)
|
||||||
table.commit(app, cursor)
|
table.commit(cursor)
|
||||||
cursor.close()
|
cursor.close()
|
||||||
db.commit()
|
db.commit()
|
||||||
return jsonify(table.toJson())
|
return jsonify(table.toJson())
|
||||||
@@ -110,7 +110,7 @@ def deactivate_table(table_id):
|
|||||||
key.release()
|
key.release()
|
||||||
key.commit(cursor)
|
key.commit(cursor)
|
||||||
|
|
||||||
table.commit(app, cursor)
|
table.commit(cursor)
|
||||||
app.logger.info(table.docker_id)
|
app.logger.info(table.docker_id)
|
||||||
container_managment.stop_container(table.docker_id)
|
container_managment.stop_container(table.docker_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user