Skip to content

Commit

Permalink
reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard0803 committed Dec 9, 2023
1 parent ee13c4c commit 3c46c6b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gestao/web/api/document/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
async def get_user_affiliation(user_id: str) -> None:
user = await User.objects.get(id=user_id)
file_stream = generate_affiliation_file(user)
file_name = 'affiliation-doc.docx'
file_name = "affiliation-doc.docx"
return StreamingResponse(
file_stream,
media_type=(
Expand Down
2 changes: 1 addition & 1 deletion gestao/web/api/router.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi.routing import APIRouter

from gestao.web.api import document, echo, monitoring, user, login
from gestao.web.api import document, echo, login, monitoring, user

api_router = APIRouter()
api_router.include_router(monitoring.router)
Expand Down
13 changes: 11 additions & 2 deletions gestao/web/api/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@


@router.get("/", response_model_exclude={"dependents__user_id"})
async def get_users(limit: int = 10, offset: int = 0,) -> List[User]:
return (await User.objects.limit(limit).offset(offset,).all())
async def get_users(
limit: int = 10,
offset: int = 0,
) -> List[User]:
return (
await User.objects.limit(limit)
.offset(
offset,
)
.all()
)


@router.get("/{user_id}", response_model_exclude={"dependents__user_id"})
Expand Down

0 comments on commit 3c46c6b

Please sign in to comment.