From b373bc1d3a4d1720b292aace4f0053249b5ef9be Mon Sep 17 00:00:00 2001 From: Phil Miesle Date: Tue, 19 Nov 2024 09:35:30 +0000 Subject: [PATCH] further lint fixes --- src/backend/base/langflow/components/data/api_request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/components/data/api_request.py b/src/backend/base/langflow/components/data/api_request.py index c4ad1d7351b5..c8f44b2d0523 100644 --- a/src/backend/base/langflow/components/data/api_request.py +++ b/src/backend/base/langflow/components/data/api_request.py @@ -134,7 +134,7 @@ async def make_request( headers: dict | None = None, body: dict | None = None, timeout: int = 5, - *, + *, follow_redirects: bool = True, save_to_file: bool = False, ) -> Data: @@ -311,7 +311,7 @@ def _response_info(self, response: httpx.Response, *, with_file_path: bool = Fal extracted_filename = filename_match.group(1) # Ensure the filename is unique if (component_temp_dir / extracted_filename).exists(): - timestamp = datetime.now().strftime("%Y%m%d%H%M%S%f") + timestamp = datetime.now(ZoneInfo("UTC")).strftime("%Y%m%d%H%M%S%f") filename = f"{timestamp}-{extracted_filename}" else: filename = extracted_filename