Skip to content

Commit

Permalink
Use request.args instead of request.raw_args
Browse files Browse the repository at this point in the history
This ensures compatibility with the next release of Datasette.

See simonw/datasette#774
  • Loading branch information
simonw authored May 30, 2020
1 parent ef748a4 commit 00455e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/template_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

@hookimpl
def extra_template_vars(request):
return {"q": request.raw_args.get("q") or ""}
return {"q": request.args.get("q", "")}

0 comments on commit 00455e5

Please sign in to comment.