diff --git a/pyproject.toml b/pyproject.toml index 13032d0..b13cffe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ description = "Add your description here" name = "module_bank" readme = "README.md" requires-python = ">=3.7" -version = "0.2.2" +version = "0.2.3" [[tool.uv.index]] default = true diff --git a/src/module_bank/python_to_sqlite.py b/src/module_bank/python_to_sqlite.py index 8882b15..57fd275 100644 --- a/src/module_bank/python_to_sqlite.py +++ b/src/module_bank/python_to_sqlite.py @@ -96,7 +96,7 @@ class PythonToSQLite: def list_modules(self): """列出数据库中的所有模块""" 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()]