From 29045003c3dbaf473fb54d9ec452976a9bda598c Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Sun, 22 Sep 2024 23:51:51 +0200 Subject: [PATCH] Refactor handle_game_status to accept a demo parameter Update version to 1.2.0 in setup.py --- ForrestHub-app/Makefile | 1 + ForrestHub-app/app/socketio_events.py | 2 +- ForrestHub-app/config.py | 2 +- ForrestHub-app/setup.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ForrestHub-app/Makefile b/ForrestHub-app/Makefile index 6f6073c..85109e5 100644 --- a/ForrestHub-app/Makefile +++ b/ForrestHub-app/Makefile @@ -3,3 +3,4 @@ clear-local: pyinstaller: clear-local pyinstaller ./pyinstaller.spec + diff --git a/ForrestHub-app/app/socketio_events.py b/ForrestHub-app/app/socketio_events.py index 4f5fd41..afb8976 100644 --- a/ForrestHub-app/app/socketio_events.py +++ b/ForrestHub-app/app/socketio_events.py @@ -30,7 +30,7 @@ def handle_disconnect(): @socketio.on("get_game_status") -def handle_game_status(): +def handle_game_status(demo): global game_status emit("game_status", game_status) diff --git a/ForrestHub-app/config.py b/ForrestHub-app/config.py index d24266e..f7b60ef 100644 --- a/ForrestHub-app/config.py +++ b/ForrestHub-app/config.py @@ -5,7 +5,7 @@ class Config: - VERSION = "1.2.0" + VERSION = "1.2.1" DATAFILE = "ForrestHub-data.json" LOG_FOLDER = "ForrestHub-logs" ALLOWED_EXTENSIONS = ["json"] diff --git a/ForrestHub-app/setup.py b/ForrestHub-app/setup.py index 9ce7383..dc6caad 100644 --- a/ForrestHub-app/setup.py +++ b/ForrestHub-app/setup.py @@ -2,7 +2,7 @@ setup( name='ForrestHub App', - version='1.0', + version='1.2.1', packages=find_packages(), include_package_data=True, install_requires=[