From a3593865a16c4ac1aeb39a51a5740833af9d5087 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Wed, 7 Aug 2024 18:28:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=83=A8=E5=88=86api=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E5=99=B6=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/db/dbMicro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywxdump/db/dbMicro.py b/pywxdump/db/dbMicro.py index a8aacb3..56cb034 100644 --- a/pywxdump/db/dbMicro.py +++ b/pywxdump/db/dbMicro.py @@ -59,7 +59,7 @@ class MicroHandler(DatabaseBase): :param id_is_key: id_is_key: True: id作为key,False: name作为key :return: """ - if (self.table_exist.get("ContactLabel") is None) or (not self.table_exist.get("ContactLabel")): + if not self.table_exist.get("ContactLabel", False): return [] sql = "SELECT LabelId, LabelName FROM ContactLabel ORDER BY LabelName ASC;" result = self.execute(sql)