Commit 6e48110e authored by Baber's avatar Baber
Browse files

nit

parent 9a7b9dd4
...@@ -49,7 +49,11 @@ class GroupConfig(dict): ...@@ -49,7 +49,11 @@ class GroupConfig(dict):
AggMetricConfig(**item) if isinstance(item, dict) else item AggMetricConfig(**item) if isinstance(item, dict) else item
for item in self.aggregate_metric_list for item in self.aggregate_metric_list
] ]
self.version = self.version or self.metadata.get("version", "1.0") self.version = (
self.version or self.metadata.get("version", "1.0")
if self.metadata
else "1.0"
)
def to_dict(self, keep_callable: bool = False) -> dict: def to_dict(self, keep_callable: bool = False) -> dict:
"""dumps the current config as a dictionary object, as a printable format. """dumps the current config as a dictionary object, as a printable format.
......
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