bluuebunny commited on
Commit
f861aa5
·
verified ·
1 Parent(s): edd5b42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 == 0: # Check if today is Monday
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 Monday, lets check again in a day.")
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