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:
parent
f3d3d029d0
commit
19780c760c
2
push.py
2
push.py
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
import time
|
||||||
|
|
||||||
def post_req(url, data={}):
|
def post_req(url, data={}):
|
||||||
response = requests.post(url, json=data)
|
response = requests.post(url, json=data)
|
||||||
@ -43,6 +44,7 @@ def main(x):
|
|||||||
|
|
||||||
URL = rule["URL"].format(GATEWAY)
|
URL = rule["URL"].format(GATEWAY)
|
||||||
post_req(URL, data=data)
|
post_req(URL, data=data)
|
||||||
|
time.sleep(0.25)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user