型を明示的に指定

This commit is contained in:
suti7yk5032 2024-08-26 00:47:39 +09:00
parent 631fd990cb
commit 86a4ef8766

View file

@ -240,8 +240,8 @@ def verify():
@app.route('/stop', methods=['POST']) @app.route('/stop', methods=['POST'])
def stop(): def stop():
pc_number = int(request.json.get('pc_number')) pc_number = int(request.json.get('pc_number'))
pc_uuid = request.json.get('pc_uuid') pc_uuid = str(request.json.get('pc_uuid'))
pc_token = request.json.get('pc_token') pc_token = str(request.json.get('pc_token'))
print(str(pc_number) + "の使用停止処理を開始...") print(str(pc_number) + "の使用停止処理を開始...")
pc_auth = auth.check(pc_number=pc_number, pc_uuid=pc_uuid, pc_token=pc_token) pc_auth = auth.check(pc_number=pc_number, pc_uuid=pc_uuid, pc_token=pc_token)