mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New implementation for RequestParams
- no longer subclasses dict - request.args[key] now returns first item, not all items - removed request.raw_args entirely Closes #774
This commit is contained in:
parent
f272cbc65f
commit
81be31322a
6 changed files with 49 additions and 16 deletions
|
|
@ -32,7 +32,7 @@ def json_renderer(args, data, view_name):
|
|||
# Handle the _json= parameter which may modify data["rows"]
|
||||
json_cols = []
|
||||
if "_json" in args:
|
||||
json_cols = args["_json"]
|
||||
json_cols = args.getlist("_json")
|
||||
if json_cols and "rows" in data and "columns" in data:
|
||||
data["rows"] = convert_specific_columns_to_json(
|
||||
data["rows"], data["columns"], json_cols
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue