From 36a3eb7704b3063793c838548a64434128657fd2 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 20:55:47 +0300 Subject: [PATCH] toxic-debug11 --- 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 621a85b..70d32b3 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -45,7 +45,7 @@ async def messages_routing(msg, state): if one_score: logger.debug(one_score) emoji = '😳' if toxic_score > 90 else '😟' if toxic_score > 80 else '😏' if toxic_score > 60 else '🙂' if toxic_score > 20 else '😇' - text = f"{one_score}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}" + text = f"{int(one_score)}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}" await telegram_api( "sendMessage", chat_id=cid,