Skip to content

Commit

Permalink
Allow get_announcements method to use the uid provided
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Sep 23, 2024
1 parent d43d915 commit 22778b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions genshin/client/components/hoyolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def get_genshin_announcements(
if self.cookie_manager.multi:
uid = uid or await self._get_uid(types.Game.GENSHIN)
else:
uid = 900000005
uid = uid or 900000005
return await self._request_announcements(types.Game.GENSHIN, uid, lang=lang)

async def get_zzz_announcements(
Expand All @@ -174,7 +174,7 @@ async def get_zzz_announcements(
if self.cookie_manager.multi:
uid = uid or await self._get_uid(types.Game.ZZZ)
else:
uid = 1300000000
uid = uid or 1300000000
return await self._request_announcements(types.Game.ZZZ, uid, lang=lang)

async def get_starrail_announcements(
Expand All @@ -187,7 +187,7 @@ async def get_starrail_announcements(
if self.cookie_manager.multi:
uid = uid or await self._get_uid(types.Game.STARRAIL)
else:
uid = 809162009
uid = uid or 809162009
return await self._request_announcements(types.Game.STARRAIL, uid, lang=lang)

@managers.requires_cookie_token
Expand Down

0 comments on commit 22778b8

Please sign in to comment.