Skip to content

Commit

Permalink
Fix search_user and get_recommended_users
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Aug 10, 2024
1 parent 54c450f commit f6bd51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genshin/client/components/hoyolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def search_users(
lang: typing.Optional[str] = None,
) -> typing.Sequence[models.PartialHoyolabUser]:
"""Search hoyolab users."""
data = await self.request_hoyolab(
data = await self.request_bbs(
"community/search/wapi/search/user",
lang=lang,
params=dict(keyword=keyword, page_size=20),
Expand Down Expand Up @@ -141,7 +141,7 @@ async def get_hoyolab_user(

async def get_recommended_users(self, *, limit: int = 200) -> typing.Sequence[models.PartialHoyolabUser]:
"""Get a list of recommended active users."""
data = await self.request_hoyolab(
data = await self.request_bbs(
"community/user/wapi/recommendActive",
params=dict(page_size=limit),
cache=client_cache.cache_key("recommended"),
Expand Down

0 comments on commit f6bd51b

Please sign in to comment.