Commit 5d4bffbf by Aeolus

update

parent 587da988
......@@ -86,7 +86,7 @@ def run_get_machine_no():
json_data = request.get_json()
qrcode_no = json_data["qrcode_no"]
machine = Machine.query.filter_by(qrcode_no=qrcode_no, status=1).first()
machine = Machine.query.filter_by(qrcode_no=qrcode_no).first()
if machine:
return BaseResponse(data={"machine_no": machine.machine_no, "status": machine.status})
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment