mirror of https://github.com/tiangolo/fastapi.git
Update tutorial006.py
The size parameter was not appended into the results.
This commit is contained in:
parent
5c054fdd65
commit
4254b2cfe5
|
|
@ -13,4 +13,6 @@ async def read_items(
|
|||
results = {"item_id": item_id}
|
||||
if q:
|
||||
results.update({"q": q})
|
||||
if size:
|
||||
results.update({"size": size})
|
||||
return results
|
||||
|
|
|
|||
Loading…
Reference in New Issue