Fix get_contacts
This commit is contained in:
parent
693affe2b0
commit
37d96524d9
@ -1,7 +1,7 @@
|
|||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__version__ = "39.0.0.0a1"
|
__version__ = "39.0.0.0a2"
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
import base64
|
import base64
|
||||||
@ -174,6 +174,7 @@ class Wcf():
|
|||||||
rsp = self._send_request(req)
|
rsp = self._send_request(req)
|
||||||
contacts = json_format.MessageToDict(rsp.contacts).get("contacts", [])
|
contacts = json_format.MessageToDict(rsp.contacts).get("contacts", [])
|
||||||
|
|
||||||
|
self.contacts.clear()
|
||||||
for cnt in contacts:
|
for cnt in contacts:
|
||||||
gender = cnt.get("gender", "")
|
gender = cnt.get("gender", "")
|
||||||
if gender == 1:
|
if gender == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user