Skip to content

Commit 004fcd4

Browse files
authored
Corrected typo
Changed `value` to `values` to solve the error `AttributeError: 'dict' object has no attribute 'value'`
1 parent 97cf21d commit 004fcd4

File tree

1 file changed

+2
-2
lines changed
  • project/01-first-rest-api

1 file changed

+2
-2
lines changed

project/01-first-rest-api/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def create_item():
3030

3131
@app.get("/item")
3232
def get_all_items():
33-
return {"items": list(items.value())}
33+
return {"items": list(items.values())}
3434

3535

3636
@app.get("/store/<string:id>")
@@ -54,4 +54,4 @@ def create_store():
5454

5555
@app.get("/store")
5656
def get_stores():
57-
return {"stores": list(stores.value())}
57+
return {"stores": list(stores.values())}

0 commit comments

Comments
 (0)