mirror of
https://git.fragrance.moe/Fragrance/maquitous.git
synced 2025-01-16 08:57:24 +00:00
fix: TypeError: mapstock() takes 0 positional arguments but 1 was given
This commit is contained in:
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>"})
|
||||
|
Reference in New Issue
Block a user