refresh cache
This commit is contained in:
parent
6c0a5c1c17
commit
d80ae3f47c
@ -54,9 +54,9 @@ async def getRawData(
|
||||
avalCharIds = [
|
||||
str(c["avatarId"]) for c in cacheData["playerInfo"]["showAvatarInfoList"]
|
||||
]
|
||||
# if int(time()) - cacheData["time"] > EXPIRE_SEC:
|
||||
# pass
|
||||
if charId in avalCharIds:
|
||||
if int(time()) - cacheData["time"] > EXPIRE_SEC:
|
||||
pass
|
||||
elif charId in avalCharIds:
|
||||
return [
|
||||
c for c in cacheData["avatarInfoList"] if str(c["avatarId"]) == charId
|
||||
][0]
|
||||
|
Loading…
Reference in New Issue
Block a user