Skip to content

Commit

Permalink
fix process.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Mar 3, 2024
1 parent 92d59c3 commit cb96f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def process_si(rows):
# Write out result
with open("nt/nutr_def.csv", "w+", encoding="utf-8") as _file:
fieldnames = list(result[0].keys())
writer = csv.DictWriter(file, fieldnames=fieldnames, lineterminator="\n")
writer = csv.DictWriter(_file, fieldnames=fieldnames, lineterminator="\n")
writer.writeheader()
writer.writerows(result)

Expand Down

0 comments on commit cb96f66

Please sign in to comment.