Fixed adding duplicate jobs, now gracefully handles

This commit is contained in:
=
2025-09-10 13:59:31 -04:00
parent 14f1a78e5f
commit 13139d7dea
3 changed files with 157 additions and 102 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ def main():
register_function("monitorOTP", utils.otpfunctions.monitorOTP)
if not os.path.exists("scheduling\\jobs.json"): recurring_job("monitor", "monitorOTP", interval=60, unit="seconds", args=[url])
if not os.path.exists("scheduling\\jobs.json"): recurring_job("monitor", "monitorOTP", interval=60, unit="seconds", args=[url, pups])
else:
reload_jobs()
start_scheduler()