modify: 模块排除密钥

This commit is contained in:
2026-05-01 15:13:39 +08:00
parent e7e2a67ea9
commit 0388984080
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()]