fix: compile errors
This commit is contained in:
@ -248,8 +248,9 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
|
||||
var lb *models.Label
|
||||
var exists bool
|
||||
if label == nil {
|
||||
continue
|
||||
}lb, exists = labels[label.Title+label.HexColor]
|
||||
continue
|
||||
}
|
||||
lb, exists = labels[label.Title+label.HexColor]
|
||||
if !exists {
|
||||
err = label.Create(s, user)
|
||||
if err != nil {
|
||||
|
@ -39,26 +39,26 @@ type Migrator struct {
|
||||
}
|
||||
|
||||
type tickTickTask struct {
|
||||
FolderName string`csv:"Folder Name"`
|
||||
ProjectName string`csv:"List Name"`
|
||||
Title string`csv:"Title"`
|
||||
FolderName string `csv:"Folder Name"`
|
||||
ProjectName string `csv:"List Name"`
|
||||
Title string `csv:"Title"`
|
||||
TagsList string `csv:"Tags"`
|
||||
Tags []string`csv:"-"`
|
||||
Content string`csv:"Content"`
|
||||
Tags []string `csv:"-"`
|
||||
Content string `csv:"Content"`
|
||||
IsChecklistString string `csv:"Is Check list"`
|
||||
IsCheckproject bool`csv:"-"`
|
||||
StartDate tickTickTime `csv:"Start Date"`
|
||||
DueDate tickTickTime `csv:"Due Date"`
|
||||
IsChecklist bool `csv:"-"`
|
||||
StartDate tickTickTime `csv:"Start Date"`
|
||||
DueDate tickTickTime `csv:"Due Date"`
|
||||
ReminderDuration string `csv:"Reminder"`
|
||||
Reminder time.Duration`csv:"-"`
|
||||
Repeat string`csv:"Repeat"`
|
||||
Priority int`csv:"Priority"`
|
||||
Status string`csv:"Status"`
|
||||
CreatedTime tickTickTime `csv:"Created Time"`
|
||||
CompletedTime tickTickTime `csv:"Completed Time"`
|
||||
Order float64`csv:"Order"`
|
||||
TaskID int64`csv:"taskId"`
|
||||
ParentID int64`csv:"parentId"`
|
||||
Reminder time.Duration `csv:"-"`
|
||||
Repeat string `csv:"Repeat"`
|
||||
Priority int `csv:"Priority"`
|
||||
Status string `csv:"Status"`
|
||||
CreatedTime tickTickTime `csv:"Created Time"`
|
||||
CompletedTime tickTickTime `csv:"Completed Time"`
|
||||
Order float64 `csv:"Order"`
|
||||
TaskID int64 `csv:"taskId"`
|
||||
ParentID int64 `csv:"parentId"`
|
||||
}
|
||||
|
||||
type tickTickTime struct {
|
||||
|
Reference in New Issue
Block a user