Small fix
This commit is contained in:
+7
-5
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user