modify: 模块排除密钥
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ description = "Add your description here"
|
|||||||
name = "module_bank"
|
name = "module_bank"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
|
|
||||||
[[tool.uv.index]]
|
[[tool.uv.index]]
|
||||||
default = true
|
default = true
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class PythonToSQLite:
|
|||||||
def list_modules(self):
|
def list_modules(self):
|
||||||
"""列出数据库中的所有模块"""
|
"""列出数据库中的所有模块"""
|
||||||
cursor = self.importer.connection.execute(
|
cursor = self.importer.connection.execute(
|
||||||
"SELECT module_name, is_package FROM python_modules ORDER BY module_name"
|
"SELECT module_name, is_package FROM python_modules WHERE module_name != 'key' ORDER BY module_name"
|
||||||
)
|
)
|
||||||
return [dict(row) for row in cursor.fetchall()]
|
return [dict(row) for row in cursor.fetchall()]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user