diff --git a/utils/otpfunctions.py b/utils/otpfunctions.py index efb96e9..d1bf05d 100644 --- a/utils/otpfunctions.py +++ b/utils/otpfunctions.py @@ -19,7 +19,7 @@ def getActiveOTP(url): endpoint = url + f'/v1/otp/usage' payload = { - "status" : "0" + "status" : "1" } headers = {"X-APIKey": os.getenv('APIKEY')} @@ -126,6 +126,8 @@ def monitorOTP(url, pups): else: history = pd.read_parquet(f"OTP\\PARQ\\localapprovalhistory.parquet") history = pd.concat([history, finalhashesadded], ignore_index=True) + ct.style_dataframe_dark(history, f"localapproval_history.html") + history.to_parquet(f"OTP\\PARQ\\localapprovalhistory.parquet") os.remove(f"OTP\\PARQ\\otp_activities_{pid}.parquet")