From 37d96524d9eb2033a77ea4652164ec934fa17801 Mon Sep 17 00:00:00 2001 From: Changhua Date: Tue, 11 Jul 2023 22:58:12 +0800 Subject: [PATCH] Fix get_contacts --- python/wcferry/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/wcferry/client.py b/python/wcferry/client.py index 88f6694..8e38733 100644 --- a/python/wcferry/client.py +++ b/python/wcferry/client.py @@ -1,7 +1,7 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -__version__ = "39.0.0.0a1" +__version__ = "39.0.0.0a2" import atexit import base64 @@ -174,6 +174,7 @@ class Wcf(): rsp = self._send_request(req) contacts = json_format.MessageToDict(rsp.contacts).get("contacts", []) + self.contacts.clear() for cnt in contacts: gender = cnt.get("gender", "") if gender == 1: