From f3eb18ae143416465a7990dd473c936425aa108f Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 17:46:06 +0300 Subject: [PATCH] redis-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 4c6a9c2..234350e 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -42,7 +42,7 @@ async def messages_routing(msg, state): scr = int(await redis.get(key)) scores.append(scr) toxic_score = math.floor(sum(scores)/len(scores)) if scores else 0 - text = f"Средняя токсичность сообщений: {toxic_score}% + text = f"Средняя токсичность сообщений: {toxic_score}%" else: latest_toxic_message_id = await redis.get(f"toxic:{cid}") scoring_msg_id = reply_msg.get("message_id") or latest_toxic_message_id