From 0b0ed4bd08e5e9f2481541049acb890fb67f8670 Mon Sep 17 00:00:00 2001 From: jkmin3 Date: Wed, 27 Mar 2024 23:43:13 -0500 Subject: [PATCH] added post request with data sending --- ai_ta_backend/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/flows.py b/ai_ta_backend/flows.py index 85930650..1f1b42b5 100644 --- a/ai_ta_backend/flows.py +++ b/ai_ta_backend/flows.py @@ -36,7 +36,7 @@ def get_users(self, limit: int = 50, pagination: bool = True, api_key: str = "") return all_users - def execute_flow(self, hook: str, api_key: str = "", post: str = "", data={}): + def execute_flow(self, hook: str, api_key: str = "", post: str = "", data=None) -> None: if not api_key: raise ValueError('api_key is required') headers = {"X-N8N-API-KEY": api_key, "Accept": "application/json"}