|
async def post_vars(self): |
|
body = await self.post_body() |
|
return dict(parse_qsl(body.decode("utf-8"), keep_blank_values=True)) |
Datasette GET requests often use ?_facet=category&_facet=size - but right now there's no neat way to handle that with POST data, since this code reduces any multiple values to just one.
This came up while working with <select multiple> (enhanced using Choices.js) in:
datasette/datasette/utils/asgi.py
Lines 138 to 140 in 832f76c
Datasette GET requests often use
?_facet=category&_facet=size- but right now there's no neat way to handle that with POST data, since this code reduces any multiple values to just one.This came up while working with
<select multiple>(enhanced using Choices.js) in: