Fix get friends
This commit is contained in:
parent
e7cf73df97
commit
0e0ae92afd
@ -383,9 +383,9 @@ class Wcf():
|
|||||||
}
|
}
|
||||||
friends = []
|
friends = []
|
||||||
for cnt in self.get_contacts():
|
for cnt in self.get_contacts():
|
||||||
if (cnt.wxid.endswith("@chatroom") # 群聊
|
if (cnt["wxid"].endswith("@chatroom") # 群聊
|
||||||
or cnt.wxid.startswith("gh_") # 公众号
|
or cnt["wxid"].startswith("gh_") # 公众号
|
||||||
or cnt.wxid in not_friends.keys() # 其他杂号
|
or cnt["wxid"] in not_friends.keys() # 其他杂号
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
friends.append(cnt)
|
friends.append(cnt)
|
||||||
|
Loading…
Reference in New Issue
Block a user