Fix type (projects) in admin basket

This commit is contained in:
phil 2024-03-25 17:19:31 +05:30
parent c8ca68e1a4
commit 775030d58c

View file

@ -18,7 +18,7 @@ api = APIRouter(
@api.get('/basket')
async def get_baskets(
user: User = Depends(get_current_active_user),
):
) -> list[BasketNameOnly]:
return [
BasketNameOnly(name=name)
for name, basket in (await manager.baskets_for_role(user)).items()