From 22778b83c74a5bbcbd12e9f804a1a8e98106ba06 Mon Sep 17 00:00:00 2001 From: seriaati Date: Mon, 23 Sep 2024 18:06:43 +0800 Subject: [PATCH] Allow get_announcements method to use the uid provided --- genshin/client/components/hoyolab.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genshin/client/components/hoyolab.py b/genshin/client/components/hoyolab.py index b781e49f..968cf691 100644 --- a/genshin/client/components/hoyolab.py +++ b/genshin/client/components/hoyolab.py @@ -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( @@ -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( @@ -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