mirror of https://github.com/Mai-with-u/MaiBot.git
fix: Ruff
parent
3cf7776966
commit
22b579be02
|
|
@ -457,7 +457,7 @@ async def build_anonymous_messages(messages: List[Dict[str, Any]]) -> str:
|
||||||
return "SELF"
|
return "SELF"
|
||||||
try:
|
try:
|
||||||
person_id = person_info_manager.get_person_id(platform, user_id)
|
person_id = person_info_manager.get_person_id(platform, user_id)
|
||||||
except Exception as e:
|
except Exception as _e:
|
||||||
person_id = None
|
person_id = None
|
||||||
if not person_id:
|
if not person_id:
|
||||||
return "?"
|
return "?"
|
||||||
|
|
@ -472,7 +472,7 @@ async def build_anonymous_messages(messages: List[Dict[str, Any]]) -> str:
|
||||||
# user_info = msg.get("user_info", {})
|
# user_info = msg.get("user_info", {})
|
||||||
platform = msg.get("chat_info_platform")
|
platform = msg.get("chat_info_platform")
|
||||||
user_id = msg.get("user_id")
|
user_id = msg.get("user_id")
|
||||||
timestamp = msg.get("time")
|
_timestamp = msg.get("time")
|
||||||
# print(f"msg:{msg}")
|
# print(f"msg:{msg}")
|
||||||
# print(f"platform:{platform}")
|
# print(f"platform:{platform}")
|
||||||
# print(f"user_id:{user_id}")
|
# print(f"user_id:{user_id}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue