no-perms-fix2

This commit is contained in:
Untone 2024-09-27 13:17:30 +03:00
parent 84c8ba11df
commit 7e0d4a2811

View File

@ -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)