Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Fix parsing of outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtzan committed Nov 24, 2022
1 parent 932c0d1 commit e53d82a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion metric_config_parser/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,13 @@ def from_github_repos(
return ConfigCollection.from_github_repo()

configs = None

for repo in repo_urls:
if configs is None:
configs = ConfigCollection.from_github_repo(repo, is_private=is_private)
else:
collection = ConfigCollection.from_github_repo(repo, is_private=is_private)
configs.merge(collection)

return configs or ConfigCollection.from_github_repo()

def spec_for_outcome(self, slug: str, platform: str) -> Optional[OutcomeSpec]:
Expand Down Expand Up @@ -514,6 +514,8 @@ def merge(self, other: "ConfigCollection"):
if outcome.slug not in slugs:
outcomes.append(outcome)

self.outcomes = outcomes

# merge definitions
other_definitions = {
definition.slug: definition for definition in deepcopy(other.definitions)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ def text_from_file(path):
[console_scripts]
metric-config-parser=metric_config_parser.cli:cli
""",
version="2022.11.2",
version="2022.11.3",
)

0 comments on commit e53d82a

Please sign in to comment.