Skip to content

Commit a289eb1

Browse files
authored
Merge pull request #229 from ecmwf-projects/COPDS-2253-request-labels-inconsistency
Fix request labels inconsistency
2 parents fe3f0bf + e801d78 commit a289eb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cads_processing_api_service/translators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
import copy
1718
from typing import Any
1819

1920
import fastapi
@@ -203,6 +204,7 @@ def translate_request_ids_into_labels(
203204
request: dict[str, Any], cds_form: list[Any] | dict[str, Any] | None
204205
) -> dict[str, Any]:
205206
"""Translate request input values into labels."""
207+
cds_form = copy.deepcopy(cds_form)
206208
if cds_form is None:
207209
cds_form = {}
208210
if not isinstance(cds_form, list):

0 commit comments

Comments
 (0)