MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / initTasks

Function initTasks

internal/bootstrap/data/task.go:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8var initialTaskItems []model.TaskItem
9
10func initTasks() {
11 InitialTasks()
12
13 for i := range initialTaskItems {
14 item := &initialTaskItems[i]
15 taskitem, _ := db.GetTaskDataByType(item.Key)
16 if taskitem == nil {
17 db.CreateTaskData(item)
18 }
19 }
20}
21
22func InitialTasks() []model.TaskItem {
23 initialTaskItems = []model.TaskItem{

Callers 1

InitDataFunction · 0.85

Calls 3

GetTaskDataByTypeFunction · 0.92
CreateTaskDataFunction · 0.92
InitialTasksFunction · 0.85

Tested by

no test coverage detected