Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def log_attendance(name, day, date, status):
|
|
20 |
|
21 |
# Add new attendance record
|
22 |
new_entry = {"Name": name, "Day": day, "Date": date, "Status": status}
|
23 |
-
df = df.
|
24 |
|
25 |
# Save back to the file
|
26 |
df.to_csv(file_path, index=False)
|
|
|
20 |
|
21 |
# Add new attendance record
|
22 |
new_entry = {"Name": name, "Day": day, "Date": date, "Status": status}
|
23 |
+
df = pd.concat([df, pd.DataFrame([new_entry])], ignore_index=True)
|
24 |
|
25 |
# Save back to the file
|
26 |
df.to_csv(file_path, index=False)
|