Skip to content

Commit

Permalink
Fixed model generation changes on Codelist and Concept Scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
javihern98 committed Apr 17, 2024
1 parent 7e0956c commit 6f9b078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pysdmx/fmr/sdmx/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def to_model(self) -> Codelist:
agency=self.agency,
description=self.description,
version=self.version,
items=[i.to_model() for i in self.valueItems],
codes=[i.to_model() for i in self.valueItems],
sdmx_type="valuelist",
)

Expand Down
2 changes: 1 addition & 1 deletion src/pysdmx/fmr/sdmx/concept.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def to_model(self, codelists: Sequence[JsonCodelist]) -> ConceptScheme:
agency=self.agency,
description=self.description,
version=self.version,
items=[c.to_model(codelists) for c in self.concepts],
concepts=[c.to_model(codelists) for c in self.concepts],
)


Expand Down

0 comments on commit 6f9b078

Please sign in to comment.