From 91292c011d9d7ae2f17cab2726cc44c38123511f Mon Sep 17 00:00:00 2001
From: lukas leufen <l.leufen@fz-juelich.de>
Date: Fri, 13 Nov 2020 11:54:20 +0000
Subject: [PATCH] fixed bug

---
 mlair/helpers/join.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlair/helpers/join.py b/mlair/helpers/join.py
index f66b277b..4683ba2a 100644
--- a/mlair/helpers/join.py
+++ b/mlair/helpers/join.py
@@ -46,7 +46,7 @@ def download_join(station_name: Union[str, List[str]], stat_var: dict, station_t
 
     # correct stat_var values if data is not aggregated (hourly)
     if sampling == "hourly":
-        [stat_var.update({k: "values"}) for k in stat_var.keys()]
+        stat_var = {key: "values" for key in stat_var.keys()}
 
     # download all variables with given statistic
     data = None
-- 
GitLab