🐛 Fix client unable to get player stats data

Previously, the client couldn't retrieve the latest player stats from the `client.get_genshin_user()` function without first browsing the application. It was necessary to call `client.get_record_cards()` to trigger a refresh.
This commit is contained in:
洛水居室 2023-08-22 10:18:57 +08:00
parent 5e18290f9a
commit 54b8ee65f7
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -46,6 +46,7 @@ class PlayerStatsPlugins(Plugin):
try:
try:
async with self.helper.genshin(user.id) as client:
await client.get_record_cards()
render_result = await self.render(client, uid)
except CookiesNotFoundError:
async with self.helper.public_genshin(user.id) as client: