mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
🐛 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:
parent
5e18290f9a
commit
54b8ee65f7
@ -46,6 +46,7 @@ class PlayerStatsPlugins(Plugin):
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
async with self.helper.genshin(user.id) as client:
|
async with self.helper.genshin(user.id) as client:
|
||||||
|
await client.get_record_cards()
|
||||||
render_result = await self.render(client, uid)
|
render_result = await self.render(client, uid)
|
||||||
except CookiesNotFoundError:
|
except CookiesNotFoundError:
|
||||||
async with self.helper.public_genshin(user.id) as client:
|
async with self.helper.public_genshin(user.id) as client:
|
||||||
|
Loading…
Reference in New Issue
Block a user