request.json -> request.get_json()
Apparently, the json method of request is considered deprecated, src https://stackoverflow.com/questions/20001229/how-to-get-posted-json-in-flask So swallep it out for request.get_json
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ def load():
|
|||||||
def deposit():
|
def deposit():
|
||||||
#Request .json, store json
|
#Request .json, store json
|
||||||
if request.isJson():
|
if request.isJson():
|
||||||
request.json.
|
request.get_json()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user