average-stab
This commit is contained in:
@@ -48,12 +48,10 @@ async def messages_routing(msg, state):
|
||||
reply_to_msg_id = reply_msg.get("message_id")
|
||||
if not reply_to_msg_id and latest_toxic_message_id:
|
||||
reply_to_msg_id = int(latest_toxic_message_id)
|
||||
try:
|
||||
# count average between all of messages
|
||||
toxic_pattern = f"toxic:{cid}:{uid}:*"
|
||||
toxic_score = await get_average_pattern(toxic_pattern)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# count average between all of messages
|
||||
toxic_pattern = f"toxic:{cid}:{uid}:*"
|
||||
toxic_score = await get_average_pattern(toxic_pattern)
|
||||
|
||||
# current mesasage toxicity
|
||||
if reply_to_msg_id:
|
||||
|
Reference in New Issue
Block a user