New "startup" plugin hook, closes #834

This commit is contained in:
Simon Willison 2020-06-13 10:55:41 -07:00
commit 09a3479a54
8 changed files with 61 additions and 0 deletions

View file

@ -167,3 +167,8 @@ def register_routes():
(r"/two/(?P<name>.*)$", two),
(r"/three/$", three),
]
@hookimpl
def startup(datasette):
datasette._startup_hook_fired = True