mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
render_cell() can now return an awaitable, refs
This commit is contained in:
parent
de5ce2e563
commit
3bb6409a6c
7 changed files with 66 additions and 21 deletions
|
|
@ -361,6 +361,7 @@ class QueryView(DataView):
|
|||
database=database,
|
||||
datasette=self.ds,
|
||||
)
|
||||
plugin_value = await await_me_maybe(plugin_value)
|
||||
if plugin_value is not None:
|
||||
display_value = plugin_value
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ class RowTableShared(DataView):
|
|||
database=database,
|
||||
datasette=self.ds,
|
||||
)
|
||||
plugin_display_value = await await_me_maybe(plugin_display_value)
|
||||
if plugin_display_value is not None:
|
||||
display_value = plugin_display_value
|
||||
elif isinstance(value, bytes):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue