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命令"""