Use cog to maintain default plugin list in plugins.rst, closes #1600

Also fixed a bug I spotted where datasette.filters showed the same hook three times.
This commit is contained in:
Simon Willison 2022-01-19 21:04:09 -08:00
commit 43c30ce023
2 changed files with 91 additions and 8 deletions

View file

@ -770,7 +770,7 @@ class Datasette:
"static": p["static_path"] is not None,
"templates": p["templates_path"] is not None,
"version": p.get("version"),
"hooks": p["hooks"],
"hooks": list(set(p["hooks"])),
}
for p in ps
]