mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: Allow empty season pass text
This commit is contained in:
parent
7f96e98e50
commit
8f86169b41
@ -167,6 +167,9 @@ class LoginAndroidCloud(ModuleBase):
|
||||
season_pass = round(season_pass / 24, 2)
|
||||
elif '分钟' in text:
|
||||
season_pass = round(season_pass / 24 / 60, 3)
|
||||
elif text == '':
|
||||
# Save as empty string so dashboard will show NoData
|
||||
season_pass = ''
|
||||
else:
|
||||
logger.error(f'Unexpected season pass text: {text}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user