Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def has_system_availability(schedule_data, class_selected, day_selected, start_t
|
|
39 |
|
40 |
# Convert string day and time to datetime
|
41 |
def get_class_datetime(day_selected, start_time_selected):
|
42 |
-
days_of_week = ["شنبه", "یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه"
|
43 |
today = JalaliDate.today().to_gregorian()
|
44 |
current_day_index = today.weekday() # This returns the current day of the week as an integer (0=Monday, 6=Sunday)
|
45 |
|
@@ -96,10 +96,10 @@ def login_page():
|
|
96 |
def schedule_page():
|
97 |
st.title("برنامه کلاسی")
|
98 |
|
99 |
-
classes = ["
|
100 |
-
days = ["شنبه", "یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه"
|
101 |
-
start_times = ["
|
102 |
-
systems = ["
|
103 |
|
104 |
st.header("مدیریت کلاسها")
|
105 |
|
|
|
39 |
|
40 |
# Convert string day and time to datetime
|
41 |
def get_class_datetime(day_selected, start_time_selected):
|
42 |
+
days_of_week = ["شنبه", "یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه"]
|
43 |
today = JalaliDate.today().to_gregorian()
|
44 |
current_day_index = today.weekday() # This returns the current day of the week as an integer (0=Monday, 6=Sunday)
|
45 |
|
|
|
96 |
def schedule_page():
|
97 |
st.title("برنامه کلاسی")
|
98 |
|
99 |
+
classes = ["تعمیرات موبایل"]
|
100 |
+
days = ["شنبه", "یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه"]
|
101 |
+
start_times = ["10:30","12:00","13:30","15:00","16:30","18:00","19:30"]
|
102 |
+
systems = ["ست ۱", "ست ۲", "ست ۳", "ست ۴", "ست ۵", "ست ۶"]
|
103 |
|
104 |
st.header("مدیریت کلاسها")
|
105 |
|