Skip to content

Commit fec6172

Browse files
committed
applying ruff formatting
1 parent e4bc0f1 commit fec6172

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/python/app/routers/route_routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async def get_routes(
3737
)
3838
return routes
3939

40+
4041
@router.get("/{route_id}", response_model=Route, status_code=status.HTTP_200_OK)
4142
async def get_route(
4243
route_id: UUID,
@@ -58,7 +59,7 @@ async def get_route(
5859
Raises:
5960
HTTPException:
6061
- 404 Not Found: If the route with the specified ID does not exist.
61-
- 500 Server Error
62+
- 500 Server Error
6263
"""
6364

6465
# TODO: the auth here does not work, I think this is an auth issue

backend/python/app/services/implementations/route_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ async def get_route(self, session: AsyncSession, route_id: UUID) -> Route:
109109
self.logger.exception("Failed to get route %s", route_id)
110110
await session.rollback()
111111
raise HTTPException(
112-
status_code=500,
113-
detail="Failed to retrieve route."
112+
status_code=500, detail="Failed to retrieve route."
114113
) from error
115114

116-
117115
async def delete_route(self, session: AsyncSession, route_id: UUID) -> bool:
118116
"""Delete route by ID"""
119117
try:

0 commit comments

Comments
 (0)