update to store and curate data correctly

This commit is contained in:
2026-04-03 15:43:19 +02:00
parent 3d7f92e20f
commit 37de34cc5e
7 changed files with 199 additions and 7 deletions
-2
View File
@@ -24,14 +24,12 @@ if __name__ == "__main__":
"STORE_GAME_HISTORY": True,
"DEBUG": True,
"SNAKE": "TemplateSnake",
"STORE_IF_WIN_AND_MOVES_ARE_BIGGER_AS": 10,
})
server = Server(
data_path=os.path.dirname(__file__),
snake_type=os.environ.get("SNAKE", "TemplateSnake"),
storage_type=os.environ.get("STORAGE", "LocalStorage"),
store_game_when_win_and_moves_are_bigger_as=int(os.environ.get("STORE_IF_WIN_AND_MOVES_ARE_BIGGER_AS", 10)),
debug=os.environ.get("DEBUG_SERVER", False),
check_tls_security=False,
)