Update wk.py
Browse files
wk.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from apscheduler.schedulers.blocking import BlockingScheduler
|
| 2 |
import requests
|
| 3 |
|
| 4 |
-
url = "https://geek7-flk.hf.space/"
|
| 5 |
|
| 6 |
scheduler = BlockingScheduler()
|
| 7 |
|
|
@@ -12,7 +12,7 @@ def ping():
|
|
| 12 |
except Exception as e:
|
| 13 |
print(f"Error pinging {url}: {e}")
|
| 14 |
|
| 15 |
-
|
| 16 |
scheduler.add_job(ping, 'interval', minutes=5)
|
| 17 |
|
| 18 |
try:
|
|
|
|
| 1 |
from apscheduler.schedulers.blocking import BlockingScheduler
|
| 2 |
import requests
|
| 3 |
|
| 4 |
+
url = "https://geek7-flk.hf.space/"
|
| 5 |
|
| 6 |
scheduler = BlockingScheduler()
|
| 7 |
|
|
|
|
| 12 |
except Exception as e:
|
| 13 |
print(f"Error pinging {url}: {e}")
|
| 14 |
|
| 15 |
+
|
| 16 |
scheduler.add_job(ping, 'interval', minutes=5)
|
| 17 |
|
| 18 |
try:
|