From 3d4cc10393d22191b030525465ba5db790e6f69d Mon Sep 17 00:00:00 2001 From: mikecarr Date: Sat, 5 Oct 2024 14:53:13 -0700 Subject: [PATCH 1/2] Create release.txt --- release.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 release.txt diff --git a/release.txt b/release.txt new file mode 100644 index 0000000..d1add8b --- /dev/null +++ b/release.txt @@ -0,0 +1 @@ +1.0.6 : removed, there is an issue with the settings file getting corrupted when adding a new file in settings From 752cdff0df71b729c45e2607522af8b34b6d6e6a Mon Sep 17 00:00:00 2001 From: Mike Carr Date: Sat, 5 Oct 2024 15:10:04 -0700 Subject: [PATCH 2/2] fix corruption in settings, commented out Camera Contol until we can figure out how to get it to work --- py_config_gs/app.py | 9 ++++++++- py_config_gs/templates/home.html | 6 +++--- py_config_gs/templates/settings.html | 21 ++++++++++----------- py_config_gs/version.txt | 2 +- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/py_config_gs/app.py b/py_config_gs/app.py index e788574..a2f9215 100644 --- a/py_config_gs/app.py +++ b/py_config_gs/app.py @@ -274,10 +274,16 @@ def settings_view(): if request.method == "POST": try: - config_files = request.form.getlist("config_files") + config_files_names = request.form.getlist("config_files_names") + config_files_paths = request.form.getlist("config_files_paths") video_dir = request.form.get("VIDEO_DIR") server_port = request.form.get("SERVER_PORT") + config_files = [ + {"name": name, "path": path} + for name, path in zip(config_files_names, config_files_paths) + ] + settings_data = { "VIDEO_DIR": video_dir, "SERVER_PORT": server_port, @@ -294,5 +300,6 @@ def settings_view(): return render_template("settings.html", settings=settings) + if __name__ == "__main__": app.run(host="0.0.0.0", port=SERVER_PORT) diff --git a/py_config_gs/templates/home.html b/py_config_gs/templates/home.html index c0cf194..3cc5f85 100644 --- a/py_config_gs/templates/home.html +++ b/py_config_gs/templates/home.html @@ -9,7 +9,7 @@ @@ -119,7 +119,7 @@

System Control

-
+ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/py_config_gs/version.txt b/py_config_gs/version.txt index 8fb1297..af0b7dd 100644 --- a/py_config_gs/version.txt +++ b/py_config_gs/version.txt @@ -1 +1 @@ -1.0.5-next +1.0.6