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
|
|
@ -0,0 +1 @@
|
|||
from datasette.version import __version_info__, __version__ # noqa
|
||||
|
|
@ -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__,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
{% endblock %}
|
||||
|
||||
<div class="ft">
|
||||
Powered by <a href="https://github.com/simonw/datasette">Datasette</a>
|
||||
Powered by <a href="https://github.com/simonw/datasette" title="Datasette v{{ datasette_version }}">Datasette</a>
|
||||
{% if query_ms %}· Query took {{ query_ms|round(3) }}ms{% endif %}
|
||||
{% if metadata.license %}· Data license:
|
||||
{% if metadata.license_url %}
|
||||
|
|
|
|||
2
datasette/version.py
Normal file
2
datasette/version.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
__version_info__ = (0, 12)
|
||||
__version__ = '.'.join(map(str, __version_info__))
|
||||
Loading…
Add table
Add a link
Reference in a new issue