Merge branch 'main' into queries

This commit is contained in:
Simon Willison 2026-05-26 13:51:51 -07:00
commit 6033bf8e40
5 changed files with 50 additions and 24 deletions

View file

@ -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 [
{