Skip to content

Commit

Permalink
Merge pull request #4 from Haitham-ghaida/fix-pydantic-validation
Browse files Browse the repository at this point in the history
changed role to roles and changed to list for pydantic validation
  • Loading branch information
cmutel authored Dec 5, 2024
2 parents a2f608c + 3aaf4e8 commit 84f40f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ecoinvent_migrate/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def generate_technosphere_mapping(
name=f"{source_db_name}-{target_db_name}",
description=description,
contributors=[
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "role": "author"},
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "role": "wrangler"},
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "roles": ["author"]},
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "roles": ["wrangler"]},
],
mapping_source=MappingConstants.ECOSPOLD2,
mapping_target=MappingConstants.ECOSPOLD2,
Expand Down Expand Up @@ -279,8 +279,8 @@ def generate_biosphere_mapping(
name=f"{source_db_name}-{target_db_name}",
description=description,
contributors=[
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "role": "author"},
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "role": "wrangler"},
{"title": "ecoinvent association", "path": "https://ecoinvent.org/", "roles": ["author"]},
{"title": "Chris Mutel", "path": "https://chris.mutel.org/", "roles": ["wrangler"]},
],
mapping_source=MappingConstants.ECOSPOLD2_BIO,
mapping_target=MappingConstants.ECOSPOLD2_BIO,
Expand Down

0 comments on commit 84f40f4

Please sign in to comment.