Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
libuke committed Nov 9, 2023
1 parent 4032d5c commit 8699f0b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions aliyundrive.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import pytz
import requests
import datetime
from aliyundrive_info import AliyundriveInfo
from tenacity import retry, stop_after_attempt, wait_random, RetryError

Expand Down Expand Up @@ -158,10 +156,7 @@ def _get_task(self, access_token: str) -> tuple[bool, str]:
success = data['success']
signInInfos = data['result']['signInInfos']

shanghai_timezone = pytz.timezone('Asia/Shanghai')
current_datetime = datetime.datetime.now(shanghai_timezone)
day = current_datetime.day

day = data['result']['signInCount']
rewards = filter(lambda info: int(info.get('day', 0)) == day, signInInfos)

award_notice = ''
Expand Down

0 comments on commit 8699f0b

Please sign in to comment.