logging-conf-fix3

This commit is contained in:
Untone 2024-09-27 13:01:30 +03:00
parent 57798dc0f7
commit c3f69d9198

View File

@ -27,6 +27,7 @@ async def get_average_pattern(pattern):
scores = []
async for key in redis.scan_iter(pattern):
scr = await redis.get(key)
scr = int(scr)
if isinstance(scr, int):
scores.append(scr)
logger.debug(f"found {len(scores)} messages")