mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't explain an explain even in the demo, refs #2293
This commit is contained in:
parent
5de6797d4a
commit
4d24bf6b34
3 changed files with 13 additions and 8 deletions
|
|
@ -393,11 +393,9 @@ def table_actions(datasette, database, table, actor):
|
|||
|
||||
@hookimpl
|
||||
def query_actions(datasette, database, query_name, sql):
|
||||
args = {
|
||||
"sql": sql,
|
||||
}
|
||||
if query_name:
|
||||
args["query_name"] = query_name
|
||||
# Don't explain an explain
|
||||
if sql.lower().startswith("explain"):
|
||||
return
|
||||
return [
|
||||
{
|
||||
"href": datasette.urls.database(database)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue