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