Fix redefined-outer-name

This commit is contained in:
RatishT 2024-06-19 16:42:19 +02:00
parent d718ecf6d3
commit a0e30b60b7
10 changed files with 98 additions and 98 deletions

View file

@ -196,8 +196,8 @@ def test_json_decimal():
def test_json_attr(app, client):
@app.route("/add", methods=["POST"])
def add():
json = flask.request.get_json()
return str(json["a"] + json["b"])
data = flask.request.get_json()
return str(data["a"] + data["b"])
rv = client.post(
"/add",