mirror of https://github.com/tiangolo/fastapi.git
Update tutorial006_an_py39.py
The size parameter was not appended to results
This commit is contained in:
parent
b0a0d6abfd
commit
83684dfb15
|
|
@ -15,4 +15,6 @@ async def read_items(
|
||||||
results = {"item_id": item_id}
|
results = {"item_id": item_id}
|
||||||
if q:
|
if q:
|
||||||
results.update({"q": q})
|
results.update({"q": q})
|
||||||
|
if size:
|
||||||
|
results.update({"size": size})
|
||||||
return results
|
return results
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue