init class when cleaning up
This commit is contained in:
+1
-1
@@ -158,5 +158,5 @@ class Server:
|
|||||||
self._delete_game_board(game_state)
|
self._delete_game_board(game_state)
|
||||||
|
|
||||||
def _cleanup_database(self):
|
def _cleanup_database(self):
|
||||||
storage = StorageLoader.build(self.storage_type)
|
storage = StorageLoader.build(self.storage_type)()
|
||||||
return jsonify(storage.cleanup())
|
return jsonify(storage.cleanup())
|
||||||
|
|||||||
Reference in New Issue
Block a user