MCPcopy Create free account
hub / github.com/dpoulson/r2_control / _stop_script

Function _stop_script

Hardware/Scripts/ScriptControl.py:70–78  ·  view source on GitHub ↗

GET a script ID to stop that script

(script_id)

Source from the content-addressed store, hash-verified

68
69@api.route('/stop/<script_id>', methods=['GET'])
70def _stop_script(script_id):
71 """GET a script ID to stop that script"""
72 message = ""
73 if request.method == 'GET':
74 if script_id == "all":
75 message += scripts.stop_all()
76 else:
77 message += scripts.stop_script(script_id)
78 return message
79
80
81@api.route('/<name>/<loop>', methods=['GET'])

Callers

nothing calls this directly

Calls 2

stop_allMethod · 0.80
stop_scriptMethod · 0.80

Tested by

no test coverage detected