From 5c7cc491f593356fafe775914af4f6e9251bb2ab Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 15 Apr 2019 22:14:26 +0200 Subject: [PATCH] Add delay support in the poussetaches client --- poussetaches.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poussetaches.py b/poussetaches.py index 2e61105..4ca8c7d 100644 --- a/poussetaches.py +++ b/poussetaches.py @@ -39,7 +39,7 @@ class PousseTaches: self.base_url = base_url def push( - self, payload: Any, path: str, expected: int = 200, schedule: str = "" + self, payload: Any, path: str, expected: int = 200, schedule: str = "", delay: int = 0, ) -> str: # Encode our payload p = base64.b64encode(json.dumps(payload).encode()).decode() @@ -52,6 +52,7 @@ class PousseTaches: "payload": p, "expected": expected, "schedule": schedule, + "delay": delay, }, ) resp.raise_for_status()