From e572b1c10e8f32dad52c5a7608e75884fcf143ac Mon Sep 17 00:00:00 2001
From: Carsten Hinz <c.hinz@fz-juelich.de>
Date: Thu, 23 May 2024 10:51:26 +0200
Subject: [PATCH] changed ID to use key and value. This results in more unique
 IDs

---
 toargridding/metadata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toargridding/metadata.py b/toargridding/metadata.py
index b96deda..14f4e4e 100644
--- a/toargridding/metadata.py
+++ b/toargridding/metadata.py
@@ -149,7 +149,7 @@ class Metadata:
 
         For example, used for saving link to results of a request in the cache.
         """
-        addition = "_".join(str(i) for i in sorted(self.moreOptions.values()))
+        addition = "_".join(f"{key}-{val}" for key, val in sorted(self.moreOptions.items()))
         return "_".join(str(i) for i in [self.variable.name, self.statistic, self.time.daterange_option, addition, "at", datetime.now().date().isoformat()])
 
     def get_title(self) -> str:
-- 
GitLab