Skip to content

datasette-template-sql causes <function ...> in textarea #6

@cldellow

Description

@cldellow

If I install this plugin by itself and navigate to /-/write, I get an empty textarea for typing in SQL.

If I then add the datasette-template-sql plugin, the textarea now has:

<function extra_template_vars.<locals>.execute_sql at 0x7fcaa98ea290>

Not a big deal, but it adds an extra step to delete it when running a query. (I also begin to wonder... is this from https://github.com/simonw/datasette-write/blob/main/datasette_write/templates/datasette_write.html#L13 ? Am I supposed to see some other SQL there some times, for example when I type in something with syntax errors?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions