Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def run_script_periodically(interval):
|
|
18 |
|
19 |
current_day = datetime.now().weekday() # Monday is 0, Sunday is 6
|
20 |
|
21 |
-
if current_day ==
|
22 |
|
23 |
log_message("Starting Updation")
|
24 |
|
@@ -32,7 +32,7 @@ def run_script_periodically(interval):
|
|
32 |
|
33 |
else:
|
34 |
|
35 |
-
print("Today is not
|
36 |
|
37 |
# Wait until the next day
|
38 |
time.sleep(60 * 60 * 24) # Check again in 24 hours
|
|
|
18 |
|
19 |
current_day = datetime.now().weekday() # Monday is 0, Sunday is 6
|
20 |
|
21 |
+
if current_day == 6: # Check if today is Sunday
|
22 |
|
23 |
log_message("Starting Updation")
|
24 |
|
|
|
32 |
|
33 |
else:
|
34 |
|
35 |
+
print("Today is not Sunday, lets check again in a day.")
|
36 |
|
37 |
# Wait until the next day
|
38 |
time.sleep(60 * 60 * 24) # Check again in 24 hours
|