Skip to content

Commit

Permalink
Merge branch 'main' into feature/mps_cli_python_file_filter_for_file_…
Browse files Browse the repository at this point in the history
…per_root_persistency
  • Loading branch information
danielratiu authored Apr 10, 2024
2 parents dd6bf70 + 7150c71 commit b174d33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mps-cli-py/src/mpscli/model/SRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class SRepository:
def __init__(self):
self.solutions = []
self.languages = []
self.model_2_uuid = {}
self.uuid_2_model = {}

def find_solution_by_name(self, name):
for sol in self.solutions:
Expand Down Expand Up @@ -53,8 +53,8 @@ def get_nodes_of_concept(self, concept_name):
return res

def get_model_by_uuid(self, uuid):
if len(self.model_2_uuid) == 0:
if len(self.uuid_2_model) == 0:
for sol in self.solutions:
for m in sol.models:
self.model_2_uuid[m.uuid] = m
return self.model_2_uuid.get(uuid)
self.uuid_2_model[m.uuid] = m
return self.uuid_2_model.get(uuid)

0 comments on commit b174d33

Please sign in to comment.