From 19780c760ceb4b3b21c49c98948378859bfe3a98 Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Sat, 5 Mar 2022 03:32:13 -0500 Subject: [PATCH] added a quarter second wait between new firewall rules to prevent any weird issues that might come up from spamming api requests --- push.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/push.py b/push.py index bb931d5..d7a6d51 100644 --- a/push.py +++ b/push.py @@ -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)