mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show size of database file next to download link, closes #172
This commit is contained in:
parent
195a5b3634
commit
4462a5ab28
7 changed files with 37 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ from datasette.utils import (
|
|||
InterruptedError,
|
||||
InvalidSql,
|
||||
LimitedWriter,
|
||||
format_bytes,
|
||||
is_url,
|
||||
path_from_row_pks,
|
||||
path_with_added_args,
|
||||
|
|
@ -102,6 +103,7 @@ class RenderMixin(HTTPMethodView):
|
|||
"extra_js_urls": self._asset_urls(
|
||||
"extra_js_urls", template, context
|
||||
),
|
||||
"format_bytes": format_bytes,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue