logging-conf-fix3
This commit is contained in:
parent
57798dc0f7
commit
c3f69d9198
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user