Commit 8dd0677d by Aeolus

update

parent e63aad72
......@@ -351,7 +351,7 @@ def run_machine_activate():
mac = json_data.get("mac", None)
machine = Machine.query.filter_by(qrcode_no=qrcode_no).first()
if machine and machine.machine_no == qrcode_no:
if machine:
if machine.status == 1:
return jsonify(MACHINE_ACTIVATED_ERROR)
machine.status = 1
......
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