From 17cc9dd8b6afde34c2bf1d9db49c45ca8f9b8c20 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 29 Sep 2024 08:25:30 +0300 Subject: [PATCH] recheck-fix2 --- handlers/messages_routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index 953455d..fb3f3c4 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -119,7 +119,7 @@ async def messages_routing(msg, state): nospaces_text_score = detector(nospaces_text) logger.info(f'no spaces text toxic: {nospaces_text_score}') if nospaces_text != text and nospaces_text_score > toxic_score: - toxic_score = nospaces_text + 10 + toxic_score = nospaces_text_score + 10 await redis.set(f"toxic:{cid}", mid) await redis.set(f"toxic:{cid}:{uid}:{mid}", toxic_perc, ex=60 * 60 * 24 * 3)