mirror of
https://github.com/simonw/datasette.git
synced 2026-06-06 00:56:57 +02:00
Merge branch 'main' into queries
This commit is contained in:
commit
6033bf8e40
5 changed files with 50 additions and 24 deletions
|
|
@ -382,8 +382,8 @@ def view_actions(datasette, database, view, actor):
|
|||
|
||||
@hookimpl
|
||||
def query_actions(datasette, database, query_name, sql):
|
||||
# Don't explain an explain
|
||||
if sql.lower().startswith("explain"):
|
||||
# Don't explain an explain (or a missing query)
|
||||
if not sql or sql.lower().startswith("explain"):
|
||||
return
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue