fix: TypeError: mapstock() takes 0 positional arguments but 1 was given
This commit is contained in:
parent
cf4fa84616
commit
f03afd2251
4
host.py
4
host.py
@ -117,7 +117,7 @@ def ticket():
|
||||
return data, returnCode
|
||||
|
||||
@app.route("/mapstock")
|
||||
def mapstock():
|
||||
def mapstock_process():
|
||||
userId = request.args.get('userid')
|
||||
if userId is None or userId.isdigit() is False or len(str(userId)) != 8:
|
||||
return jsonify({"apiName": "mapstock", "apiInfo": "Save 99 Kilometers in Maps.", "apiUsage": "/mapstock?userid=<userId>"})
|
||||
@ -166,7 +166,7 @@ def mapstock():
|
||||
return data, returnCode
|
||||
|
||||
@app.route("/unlock")
|
||||
def unlock():
|
||||
def unlock_process():
|
||||
userId = request.args.get('userid')
|
||||
if userId is None or userId.isdigit() is False or len(str(userId)) != 8:
|
||||
return jsonify({"apiName": "unlock", "apiInfo": "Unlock All DX Master Charts.", "apiUsage": "/unlock?userid=<userId>"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user