From 4e9a2bef0335053f85bd86183545b8f5b063da2a Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Fri, 2 Aug 2024 01:21:56 +0800 Subject: [PATCH] Fix: CloudRemainSeasonPass should be int --- tasks/login/cloud.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/login/cloud.py b/tasks/login/cloud.py index 456eca8b9..895909135 100644 --- a/tasks/login/cloud.py +++ b/tasks/login/cloud.py @@ -168,8 +168,7 @@ class LoginAndroidCloud(ModuleBase): elif '分钟' in text: season_pass = round(season_pass / 24 / 60, 3) elif text == '': - # Save as empty string so dashboard will show NoData - season_pass = '' + season_pass = 0 else: logger.error(f'Unexpected season pass text: {text}')