From 23cd45b6d44be36e2d7af1f0676d0792ee024309 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 20:57:44 +0300 Subject: [PATCH] toxic-debug12 --- handlers/messages_routing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index 70d32b3..191e9b2 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -39,9 +39,7 @@ async def messages_routing(msg, state): if not scoring_msg_id and latest_toxic_message_id: scoring_msg_id = int(latest_toxic_message_id) if scoring_msg_id: - msg_toxic_key = f"toxic:{cid}:{uid}:{scoring_msg_id}" - logger.debug('msg_toxic_key: ', msg_toxic_key) - one_score = await redis.get(msg_toxic_key) + one_score = await redis.get(f"toxic:{cid}:{uid}:{scoring_msg_id}") 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 '😇'