mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Do not show default plugins on /-/plugins
This commit is contained in:
parent
aae49fef3b
commit
0bd41d4cb0
2 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ from .utils import (
|
|||
to_css_class
|
||||
)
|
||||
from .inspect import inspect_hash, inspect_views, inspect_tables
|
||||
from .plugins import pm
|
||||
from .plugins import pm, DEFAULT_PLUGINS
|
||||
from .version import __version__
|
||||
|
||||
app_root = Path(__file__).parent.parent
|
||||
|
|
@ -359,7 +359,7 @@ class Datasette:
|
|||
"templates": p["templates_path"] is not None,
|
||||
"version": p.get("version"),
|
||||
}
|
||||
for p in get_plugins(pm)
|
||||
for p in get_plugins(pm) if p["name"] not in DEFAULT_PLUGINS
|
||||
]
|
||||
|
||||
async def execute(
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import importlib
|
|||
import pluggy
|
||||
from . import hookspecs
|
||||
|
||||
default_plugins = (
|
||||
DEFAULT_PLUGINS = (
|
||||
"datasette.publish.heroku",
|
||||
"datasette.publish.now",
|
||||
)
|
||||
|
|
@ -12,6 +12,6 @@ pm.add_hookspecs(hookspecs)
|
|||
pm.load_setuptools_entrypoints("datasette")
|
||||
|
||||
# Load default plugins
|
||||
for plugin in default_plugins:
|
||||
for plugin in DEFAULT_PLUGINS:
|
||||
mod = importlib.import_module(plugin)
|
||||
pm.register(mod, plugin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue