From 55c4a8aa729a3f7129e872b59342dccb94456361 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Sat, 13 Apr 2024 01:09:51 +0200 Subject: [PATCH] add choice to enable store game state into .env file --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index a60a41e..3083561 100644 --- a/main.py +++ b/main.py @@ -28,4 +28,8 @@ if __name__ == "__main__": port=int(os.environ.get("PORT", "8000")), debug=bool(os.environ.get("debug", False)), ) + + if os.environ.get("store_game", None): + server.enable_store_game_state() + server.run()