no-perms-fix2
This commit is contained in:
parent
84c8ba11df
commit
7e0d4a2811
|
@ -26,7 +26,7 @@ async def get_all_pattern(uid):
|
|||
async def get_average_pattern(pattern):
|
||||
scores = []
|
||||
async for key in redis.scan_iter(pattern):
|
||||
scr = await redis.get(key)
|
||||
scr = await redis.get(str(key))
|
||||
scr = int(scr)
|
||||
if isinstance(scr, int):
|
||||
scores.append(scr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user