bluuebunny commited on
Commit
77a9551
·
verified ·
1 Parent(s): 5cd10ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,14 +35,14 @@ def run_script_periodically(interval):
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
39
 
40
  # Function to greet the user
41
  def greet(name):
42
  return "Hello " + name + "!!"
43
 
44
  # Specify the interval (in seconds)
45
- interval_seconds = 60*60*24*1 # Run run.py every day
46
 
47
  # Create a thread to run the script periodically
48
  script_thread = threading.Thread(target=run_script_periodically, args=(interval_seconds,))
 
35
  print("Today is not Sunday, lets check again in a day.")
36
 
37
  # Wait until the next day
38
+ time.sleep(60 * 60 * 6) # Check again in 24 hours
39
 
40
  # Function to greet the user
41
  def greet(name):
42
  return "Hello " + name + "!!"
43
 
44
  # Specify the interval (in seconds)
45
+ interval_seconds = 60*60*24*1 # Once updated, sleep for a day
46
 
47
  # Create a thread to run the script periodically
48
  script_thread = threading.Thread(target=run_script_periodically, args=(interval_seconds,))