MCPcopy Create free account
hub / github.com/Tong89/smartNode / ok

Function ok

backend/envelope.py:28–36  ·  view source on GitHub ↗
(data=None, meta=None)

Source from the content-addressed store, hash-verified

26
27
28def ok(data=None, meta=None):
29 body = {
30 "code": 0,
31 "data": data,
32 "request_id": uuid.uuid4().hex[:12],
33 }
34 if meta is not None:
35 body["meta"] = meta
36 return jsonify(body)
37
38
39def err(code, message=None, http_status=None, details=None):

Callers 15

get_debug_statusFunction · 0.90
get_requests_paginatedFunction · 0.90
get_system_infoFunction · 0.90
get_snapshot_atFunction · 0.90
scenario_saveFunction · 0.90
scenario_loadFunction · 0.90
scenario_importFunction · 0.90
scenario_currentFunction · 0.90
scenarios_listFunction · 0.90
scenarios_saveFunction · 0.90
scenarios_deleteFunction · 0.90
scenarios_activateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected