From cb96f669ccd9512e8c348bb800cd9108718d929c Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 2 Mar 2024 19:14:10 -0500 Subject: [PATCH] fix process.py --- data/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/process.py b/data/process.py index ba2c283..bd79313 100644 --- a/data/process.py +++ b/data/process.py @@ -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)