Skip to content
Snippets Groups Projects
Commit e572b1c1 authored by Carsten Hinz's avatar Carsten Hinz
Browse files

changed ID to use key and value. This results in more unique IDs

parent 553582f7
Branches
Tags
1 merge request!11Creation of first beta release version
...@@ -149,7 +149,7 @@ class Metadata: ...@@ -149,7 +149,7 @@ class Metadata:
For example, used for saving link to results of a request in the cache. 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()]) 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: def get_title(self) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment