From 9d40eeafbc7e4736c92c5b41b297d29e10577907 Mon Sep 17 00:00:00 2001 From: SpliiT Date: Tue, 26 May 2026 15:54:58 +0200 Subject: [PATCH 1/3] feat(ColorMapViewer): Name for colormaps --- src/opengeodeweb_back/utils_functions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/opengeodeweb_back/utils_functions.py b/src/opengeodeweb_back/utils_functions.py index 8a103814..8e364810 100644 --- a/src/opengeodeweb_back/utils_functions.py +++ b/src/opengeodeweb_back/utils_functions.py @@ -303,6 +303,9 @@ def save_all_viewables_and_return_info( name = geode_object.identifier.name() if not name: flask.abort(400, "Geode object has no name defined.") + + with open(os.path.join(data_path, "name.txt"), "w") as f: + f.write(name) response: dict[str, Any] = { "native_file": data.native_file, From 9bcb8cc13a4e101b50a185d91b3447c05212c9e0 Mon Sep 17 00:00:00 2001 From: SpliiT <106495600+SpliiT@users.noreply.github.com> Date: Wed, 27 May 2026 08:08:00 +0000 Subject: [PATCH 2/3] Apply prepare changes --- requirements.txt | 1 - src/opengeodeweb_back/utils_functions.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 76111aa7..ff9ae20e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -60,4 +60,3 @@ werkzeug==3.1.8 # flask # flask-cors -opengeodeweb-microservice==1.*,>=1.1.3 diff --git a/src/opengeodeweb_back/utils_functions.py b/src/opengeodeweb_back/utils_functions.py index 8e364810..a441d151 100644 --- a/src/opengeodeweb_back/utils_functions.py +++ b/src/opengeodeweb_back/utils_functions.py @@ -303,7 +303,7 @@ def save_all_viewables_and_return_info( name = geode_object.identifier.name() if not name: flask.abort(400, "Geode object has no name defined.") - + with open(os.path.join(data_path, "name.txt"), "w") as f: f.write(name) From 124a08fa8c62a341d31e4239c3b671336936bacd Mon Sep 17 00:00:00 2001 From: SpliiT Date: Wed, 27 May 2026 10:52:22 +0200 Subject: [PATCH 3/3] discard --- src/opengeodeweb_back/utils_functions.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/opengeodeweb_back/utils_functions.py b/src/opengeodeweb_back/utils_functions.py index a441d151..8a103814 100644 --- a/src/opengeodeweb_back/utils_functions.py +++ b/src/opengeodeweb_back/utils_functions.py @@ -304,9 +304,6 @@ def save_all_viewables_and_return_info( if not name: flask.abort(400, "Geode object has no name defined.") - with open(os.path.join(data_path, "name.txt"), "w") as f: - f.write(name) - response: dict[str, Any] = { "native_file": data.native_file, "viewable_file": data.viewable_file,