This commit is contained in:
Untone 2024-09-26 19:41:55 +03:00
parent 580cb562d9
commit 22a529e866

View File

@ -36,7 +36,7 @@ async def messages_routing(msg, state):
pattern = f"toxic:{cid}:{uid}:*" pattern = f"toxic:{cid}:{uid}:*"
scores = [] scores = []
found = await redis.scan_iter(pattern) found = await redis.scan_iter(pattern)
logger.debug(f'found {len(found) messages}') logger.debug(f'found {len(found)} messages')
for key in found: for key in found:
scr = await redis.get(key) scr = await redis.get(key)
if isinstance(scr, int): if isinstance(scr, int):