From c9975f7b7ff4f736f5fe61e9df857d79a343eb01 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 17:42:02 +0300 Subject: [PATCH] less-log2 --- 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 7396aa9..4a2ab12 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -48,7 +48,7 @@ async def messages_routing(msg, state): scoring_msg_id = reply_msg.get("message_id") or latest_toxic_message_id toxic_score = await redis.get(f"toxic:{cid}:{uid}:{scoring_msg_id}") if toxic_score: - text = f"{toxic_score}% токсичности" + text = f"{int(toxic_score)}% токсичности" if text: await telegram_api( "sendMessage",