Skip to content

Commit 5d66ea7

Browse files
authored
fix small bug: JSON cannot be a list
return a dictionary called "stores" with all of the stores
1 parent b6ee9ab commit 5d66ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

section3/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_store(name):
3535
#get /store
3636
@app.route('/store')
3737
def get_stores():
38-
return jsonify(stores)
38+
return jsonify({'stores': stores})
3939
#pass
4040

4141
#post /store/<name> data: {name :}

0 commit comments

Comments
 (0)