Skip to content

Commit

Permalink
further lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mieslep committed Nov 19, 2024
1 parent 7e76a22 commit b373bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/base/langflow/components/data/api_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def make_request(
headers: dict | None = None,
body: dict | None = None,
timeout: int = 5,
*,
*,

Check failure on line 137 in src/backend/base/langflow/components/data/api_request.py

View workflow job for this annotation

GitHub Actions / Ruff Style Check (3.12)

Ruff (W291)

src/backend/base/langflow/components/data/api_request.py:137:11: W291 Trailing whitespace
follow_redirects: bool = True,
save_to_file: bool = False,
) -> Data:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b373bc1

Please sign in to comment.