This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-16 23:51:38 -07:00
1 parent 805bfca5af
commit 954613944b
5 files changed
+349 -205

No files matched your search

+5
View File
@@ -38,6 +38,7 @@ router = APIRouter()
@router.get('/', response_model=list[SkillUserResponse])
async def get_skills(
request: Request,
query: Optional[str] = None,
user=Depends(get_verified_user),
db: AsyncSession = Depends(get_async_session),
):
@@ -60,6 +61,10 @@ async def get_skills(
)
]
if query:
q = query.casefold()
skills = [skill for skill in skills if q in (skill.name or '').casefold()]
return skills