no-perms-fix2
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user