Small fix

This commit is contained in:
=
2025-09-10 12:04:45 -04:00
parent b0f4d84e78
commit 14f1a78e5f
3 changed files with 9 additions and 20 deletions
+7 -5
View File
@@ -53,12 +53,14 @@ def main():
if args.monitorOTP:
# Non-interactive logic
if not os.path.exists("scheduling"): os.makedirs("scheduling")
if not os.path.exists("OTP"): os.makedirs("OTP")
if not os.path.exists("OTP\\HTML"): os.mkdir("OTP\\HTML")
if not os.path.exists("OTP\\PARQ"): os.mkdir("OTP\\PARQ")
apivalidation()
print(f"Running non-interactively to start monitoring OTP")
os.makedirs("scheduling", exist_ok=True)
os.makedirs("OTP/HTML", exist_ok=True)
os.makedirs("OTP/PARQ", exist_ok=True)
apivalidation()
register_function("monitorOTP", utils.otpfunctions.monitorOTP)
if not os.path.exists("scheduling\\jobs.json"): recurring_job("monitor", "monitorOTP", interval=60, unit="seconds", args=[url])