Fix get friends

This commit is contained in:
Changhua 2023-03-09 20:03:17 +08:00
parent e7cf73df97
commit 0e0ae92afd

View File

@ -383,9 +383,9 @@ class Wcf():
}
friends = []
for cnt in self.get_contacts():
if (cnt.wxid.endswith("@chatroom") # 群聊
or cnt.wxid.startswith("gh_") # 公众号
or cnt.wxid in not_friends.keys() # 其他杂号
if (cnt["wxid"].endswith("@chatroom") # 群聊
or cnt["wxid"].startswith("gh_") # 公众号
or cnt["wxid"] in not_friends.keys() # 其他杂号
):
continue
friends.append(cnt)