MCPcopy Create free account
hub / github.com/dataease/SQLBot / enable

Function enable

backend/apps/data_training/api/data_training.py:67–68  ·  view source on GitHub ↗
(session: SessionDep, id: int, enabled: bool, trans: Trans)

Source from the content-addressed store, hash-verified

65@system_log(LogConfig(operation_type=OperationType.UPDATE, module=OperationModules.DATA_TRAINING,resource_id_expr='id'))
66@require_permissions(permission=SqlbotPermission(role=['ws_admin']))
67async def enable(session: SessionDep, id: int, enabled: bool, trans: Trans):
68 enable_training(session, id, enabled, trans)
69
70
71@router.get("/export", summary=f"{PLACEHOLDER_PREFIX}export_dt")

Callers

nothing calls this directly

Calls 1

enable_trainingFunction · 0.90

Tested by

no test coverage detected