Skip to content

Commit

Permalink
fix(parsecsv_staff): fix bad row refrence
Browse files Browse the repository at this point in the history
  • Loading branch information
drahamim authored Oct 13, 2024
1 parent 148531c commit bc870bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invenflask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down

0 comments on commit bc870bb

Please sign in to comment.