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