RustImplementation #23
@@ -19,7 +19,7 @@ def getActiveOTP(url):
|
|||||||
|
|
||||||
endpoint = url + f'/v1/otp/usage'
|
endpoint = url + f'/v1/otp/usage'
|
||||||
payload = {
|
payload = {
|
||||||
"status" : "0"
|
"status" : "1"
|
||||||
}
|
}
|
||||||
|
|
||||||
headers = {"X-APIKey": os.getenv('APIKEY')}
|
headers = {"X-APIKey": os.getenv('APIKEY')}
|
||||||
@@ -126,6 +126,8 @@ def monitorOTP(url, pups):
|
|||||||
else:
|
else:
|
||||||
history = pd.read_parquet(f"OTP\\PARQ\\localapprovalhistory.parquet")
|
history = pd.read_parquet(f"OTP\\PARQ\\localapprovalhistory.parquet")
|
||||||
history = pd.concat([history, finalhashesadded], ignore_index=True)
|
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")
|
history.to_parquet(f"OTP\\PARQ\\localapprovalhistory.parquet")
|
||||||
|
|
||||||
os.remove(f"OTP\\PARQ\\otp_activities_{pid}.parquet")
|
os.remove(f"OTP\\PARQ\\otp_activities_{pid}.parquet")
|
||||||
|
|||||||
Reference in New Issue
Block a user