From a9c01a309504c3ec567030312b8eacdf1358e9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=8E=E6=98=8E?= Date: Tue, 7 May 2024 11:12:28 +0800 Subject: [PATCH] version 0.0.8 --- setup.py | 2 +- wxhook/__init__.py | 2 +- wxhook/core.py | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index e8914bf..20f2880 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ URL = 'https://github.com/miloira/wxhook' EMAIL = '690126048@qq.com' AUTHOR = 'Msky' REQUIRES_PYTHON = '>=3.8.0' -VERSION = '0.0.7' +VERSION = '0.0.8' # What packages are required for this module to be executed? REQUIRED = [ diff --git a/wxhook/__init__.py b/wxhook/__init__.py index b670716..686d97e 100644 --- a/wxhook/__init__.py +++ b/wxhook/__init__.py @@ -1,3 +1,3 @@ from .core import Bot -version = "0.0.7" +version = "0.0.8" diff --git a/wxhook/core.py b/wxhook/core.py index 0a5acfd..76335cc 100644 --- a/wxhook/core.py +++ b/wxhook/core.py @@ -411,8 +411,13 @@ class Bot: def get_db_info(self) -> typing.List[DB]: """获取数据库句柄""" - return [DB(databaseName=item["databaseName"], handle=item["handle"], - tables=[Table(**sub_item) for sub_item in item["tables"]]) for item in self.call_api("/api/getDBInfo")] + return [ + DB(databaseName=item["databaseName"], handle=item["handle"], tables=[ + Table(**sub_item) + for sub_item in item["tables"] + ]) + for item in self.call_api("/api/getDBInfo") + ] def exec_sql(self, db_handle: int, sql: str) -> Response: """执行SQL命令"""