added a quarter second wait between new firewall rules to prevent any weird issues that might come up from spamming api requests

This commit is contained in:
Michael Scalzetti 2022-03-05 03:32:13 -05:00
parent f3d3d029d0
commit 19780c760c

View File

@ -2,6 +2,7 @@
import requests
import json
import time
def post_req(url, data={}):
response = requests.post(url, json=data)
@ -43,6 +44,7 @@ def main(x):
URL = rule["URL"].format(GATEWAY)
post_req(URL, data=data)
time.sleep(0.25)