omarkashif commited on
Commit
3cd1b2f
·
verified ·
1 Parent(s): 66e4e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -50,7 +50,10 @@ class AttendanceTracker:
50
  new_attendance_list = []
51
  with open(attendance_file.name, "r") as f:
52
  reader = csv.reader(f)
53
- new_attendance_list = [row[0:2].strip().lower() for row in reader if row] # Convert to lower case for comparison
 
 
 
54
 
55
  # Debug: Print new attendance names
56
  print("New Attendance Names:", new_attendance_list)
 
50
  new_attendance_list = []
51
  with open(attendance_file.name, "r") as f:
52
  reader = csv.reader(f)
53
+ for row in reader:
54
+ if row:
55
+ combined_name = f"{row[0].strip()} {row[1].strip()}".lower() # Combine first and last name and make it lowercase for comparison
56
+ new_attendance_list.append(combined_name)
57
 
58
  # Debug: Print new attendance names
59
  print("New Attendance Names:", new_attendance_list)