Fixed adding duplicate jobs, now gracefully handles
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user