mirror of https://github.com/tiangolo/fastapi.git
Update tutorial006_an.py
The size parameter was not appended to results
This commit is contained in:
parent
4254b2cfe5
commit
b0a0d6abfd
|
|
@ -14,4 +14,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