Commit 9f8ffa82 authored by Bruno Duyé's avatar Bruno Duyé

Remove "(u)" from values (Closes #222)

parent b93530ce
Pipeline #9796 failed with stage
in 12 minutes and 1 second
......@@ -237,7 +237,8 @@ def treat_dataset(dataset_dict, appendix_path, appendix_dict):
# assert_same_files_content(current_observations_file.name.replace('-dup', ''), current_observations_file.name)
# current_series_code = series_code
# Prepare value
observation_value_str = str(numbers.parse_decimal(observation_dict["DataValue"], locale='en_us'))
value = observation_dict["DataValue"].replace("(u)", '') # https://git.nomics.world/dbnomics-fetchers/management/issues/222
observation_value_str = str(numbers.parse_decimal(value, locale='en_us'))
# Add value to observations list
if dataset_dict.get("dimension_code"):
assert dataset_dict["dimension_code"] == "FREQ", "Unhandled case"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment