Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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)
|