Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,8 +52,7 @@ def add_attendance(name):
|
|
| 52 |
if not os.path.isdir('Attendance'):
|
| 53 |
os.makedirs('Attendance')
|
| 54 |
|
| 55 |
-
elif:
|
| 56 |
-
f'Attendance-{current_datetime}.csv' not in os.listdir('Attendance'):
|
| 57 |
with open(f'Attendance/Attendance-{current_datetime}.csv', 'w') as f:
|
| 58 |
f.write('Name,Time')
|
| 59 |
|
|
|
|
| 52 |
if not os.path.isdir('Attendance'):
|
| 53 |
os.makedirs('Attendance')
|
| 54 |
|
| 55 |
+
elif f'Attendance-{current_datetime}.csv' not in os.listdir('Attendance'):
|
|
|
|
| 56 |
with open(f'Attendance/Attendance-{current_datetime}.csv', 'w') as f:
|
| 57 |
f.write('Name,Time')
|
| 58 |
|