Skip to content

Commit

Permalink
use the right key to check missing material processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb committed Sep 30, 2024
1 parent 1f68b23 commit 5546a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/textile/activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

projects.create_project("textile", activate=True, exist_ok=True)

with open("../../public/data/textile/processes_impacts.json") as f:
with open("../../../ecobalyse-private/data/textile/processes_impacts.json") as f:
processes = json.loads(f.read())
with open("../../public/data/textile/materials.json") as f:
materials = {m["name"]: m for m in json.loads(f.read())}
Expand All @@ -16,8 +16,8 @@


# check no missing process
for material in materials.keys():
if material not in [p["name"] for p in processes]:
for material in materials.values():
if material["materialProcessUuid"] not in [p["uuid"] for p in processes]:
print(f"missing process: {material}")

for process in processes:
Expand Down

0 comments on commit 5546a8a

Please sign in to comment.