Skip to content

Commit

Permalink
fix format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EnotShow committed Jan 23, 2024
1 parent e2b9f8b commit 15bfbb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sqladmin/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def __init__(
"/{identity}/download/{file_path:path}",
endpoint=self.download,
name="download",
methods=["GET"]
methods=["GET"],
),
]

Expand Down
2 changes: 1 addition & 1 deletion sqladmin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def write(self, value: T) -> T:


def stream_to_csv(
callback: Callable[[Writer], AsyncGenerator[T, None]]
callback: Callable[[Writer], AsyncGenerator[T, None]],
) -> Generator[T, None, None]:
"""Function that takes a callable (that yields from a CSV Writer), and
provides it a writer that streams the output directly instead of
Expand Down
4 changes: 1 addition & 3 deletions sqladmin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,7 @@ async def get_object_for_delete(self, value: Any) -> Any:

async def _get_download_link(self, request: Request, value: str) -> Any:
return request.url_for(
"admin:download",
identity=self.identity,
file_path=value
"admin:download", identity=self.identity, file_path=value
)

def _stmt_by_identifier(self, identifier: str) -> Select:
Expand Down

0 comments on commit 15bfbb2

Please sign in to comment.