Fix redefined-outer-name
This commit is contained in:
parent
d718ecf6d3
commit
a0e30b60b7
10 changed files with 98 additions and 98 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue