Skip to content

Commit

Permalink
Merge pull request #229 from ecmwf-projects/COPDS-2253-request-labels…
Browse files Browse the repository at this point in the history
…-inconsistency

Fix request labels inconsistency
  • Loading branch information
mcucchi9 authored Nov 28, 2024
2 parents fe3f0bf + e801d78 commit a289eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cads_processing_api_service/translators.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import copy
from typing import Any

import fastapi
Expand Down Expand Up @@ -203,6 +204,7 @@ def translate_request_ids_into_labels(
request: dict[str, Any], cds_form: list[Any] | dict[str, Any] | None
) -> dict[str, Any]:
"""Translate request input values into labels."""
cds_form = copy.deepcopy(cds_form)
if cds_form is None:
cds_form = {}
if not isinstance(cds_form, list):
Expand Down

0 comments on commit a289eb1

Please sign in to comment.