mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
e6ca885883
commit
228bce83a3
5 changed files with 9 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ from .utils import (
|
|||
sqlite_timelimit,
|
||||
validate_sql_select,
|
||||
)
|
||||
from .version import __version__
|
||||
|
||||
app_root = Path(__file__).parent.parent
|
||||
|
||||
|
|
@ -223,6 +224,7 @@ class BaseView(HTTPMethodView):
|
|||
'url_json': path_with_ext(request, '.json'),
|
||||
'url_jsono': path_with_ext(request, '.jsono'),
|
||||
'metadata': self.ds.metadata,
|
||||
'datasette_version': __version__,
|
||||
}}
|
||||
r = self.jinja.render(
|
||||
template,
|
||||
|
|
@ -279,6 +281,7 @@ class IndexView(HTTPMethodView):
|
|||
request,
|
||||
databases=databases,
|
||||
metadata=self.ds.metadata,
|
||||
datasette_version=__version__,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue