From 657d6eb93ebe25c38206aa3ffed5cb8372a947a8 Mon Sep 17 00:00:00 2001 From: lukas leufen <l.leufen@fz-juelich.de> Date: Thu, 6 Feb 2020 15:28:17 +0100 Subject: [PATCH] bugfix for renaming of stat_var values --- src/join.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/join.py b/src/join.py index bb1db30e..bcbce84d 100644 --- a/src/join.py +++ b/src/join.py @@ -45,7 +45,8 @@ def download_join(station_name: Union[str, List[str]], stat_var: dict, station_t vars_dict = load_series_information(station_name, station_type, network_name, join_url_base, headers) # correct stat_var values if data is not aggregated (hourly) - [stat_var.update({k: "values"}) for k in stat_var.keys()] + if sampling == "hourly": + [stat_var.update({k: "values"}) for k in stat_var.keys()] # download all variables with given statistic data = None -- GitLab