diff --git a/requirements.txt b/requirements.txt index dc98691..1972ac0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -60,4 +60,3 @@ werkzeug==3.1.2 # flask # flask-cors -opengeodeweb-microservice==1.*,>=1.0.4rc9 diff --git a/src/opengeodeweb_back/utils_functions.py b/src/opengeodeweb_back/utils_functions.py index a0c9484..c569519 100644 --- a/src/opengeodeweb_back/utils_functions.py +++ b/src/opengeodeweb_back/utils_functions.py @@ -213,7 +213,7 @@ def save_all_viewables_and_return_info( "object_type": geode_functions.get_object_type(geode_object), "binary_light_viewable": binary_light_viewable.decode("utf-8"), "geode_object": data_entry.geode_object, - "input_files": data_entry.input_file, + "input_file": data_entry.input_file, "additional_files": data_entry.additional_files, } diff --git a/tests/test_utils_functions.py b/tests/test_utils_functions.py index befcc14..4aae540 100644 --- a/tests/test_utils_functions.py +++ b/tests/test_utils_functions.py @@ -116,7 +116,7 @@ def test_save_all_viewables_and_return_info(client): assert isinstance(result["object_type"], str) assert isinstance(result["binary_light_viewable"], str) assert result["geode_object"] == geode_object - assert result["input_files"] == input_file + assert result["input_file"] == input_file db_entry = Data.get(result["id"]) assert db_entry is not None @@ -173,7 +173,7 @@ def test_generate_native_viewable_and_light_viewable_from_object(client): assert re.match(r"[0-9a-f]{32}", result["id"]) assert isinstance(result["object_type"], str) assert isinstance(result["binary_light_viewable"], str) - assert result["input_files"] == "" + assert result["input_file"] == "" def test_generate_native_viewable_and_light_viewable_from_file(client): @@ -195,4 +195,4 @@ def test_generate_native_viewable_and_light_viewable_from_file(client): assert re.match(r"[0-9a-f]{32}", result["id"]) assert isinstance(result["object_type"], str) assert isinstance(result["binary_light_viewable"], str) - assert isinstance(result["input_files"], str) + assert isinstance(result["input_file"], str)