Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,13 @@ import os
|
|
4 |
from datetime import datetime
|
5 |
|
6 |
# Attendance Tracker Setup
|
7 |
-
|
|
|
8 |
os.makedirs("attendance_records")
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Helper Functions
|
11 |
def log_attendance(name, day, date, status):
|
|
|
4 |
from datetime import datetime
|
5 |
|
6 |
# Attendance Tracker Setup
|
7 |
+
try:
|
8 |
+
if not os.path.exists("attendance_records"):
|
9 |
os.makedirs("attendance_records")
|
10 |
+
except error:
|
11 |
+
print(error)
|
12 |
+
|
13 |
+
|
14 |
|
15 |
# Helper Functions
|
16 |
def log_attendance(name, day, date, status):
|