Update app.py
Browse files
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 *
|
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 #
|
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,))
|