From bc870bb9a8b509e428f7cc6b3ac77c02395b3efb Mon Sep 17 00:00:00 2001 From: Daniel Rahamim Date: Sun, 13 Oct 2024 15:12:42 -0700 Subject: [PATCH] fix(parsecsv_staff): fix bad row refrence --- src/invenflask/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invenflask/app.py b/src/invenflask/app.py index 95558fc..4fb1428 100644 --- a/src/invenflask/app.py +++ b/src/invenflask/app.py @@ -408,7 +408,7 @@ def parseCSV_staff(filePath, first_name=False, last_name_col=False, staff_id=Fal csvData = pd.read_csv(filePath, header=0, keep_default_na=False) for i, row in csvData.iterrows(): try: - last_name = row [last_name_col if last_name_col else "" + last_name = row[last_name_col] if last_name_col else "" division = row[division_col] if division_col else "" title = row[title_col] if title_col else ""