Skip to content

Commit

Permalink
One more fix for python-microservices blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
daveklein committed Aug 30, 2022
1 parent a837ba2 commit 28f4b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-microservices/pizza-service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

@app.route('/order/<count>', methods=['POST'])
def order_pizzas(count):
order_num = pizza_service.order_pizzas(int(count))
return json.dumps({"order_id": order_num})
order_id = pizza_service.order_pizzas(int(count))
return json.dumps({"order_id": order_id})


@app.route('/order/<order_id>', methods=['GET'])
Expand Down

0 comments on commit 28f4b3e

Please sign in to comment.