toxic-debug12
This commit is contained in:
@@ -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 '😇'
|
||||
|
Reference in New Issue
Block a user