|
|
@ -70,7 +70,10 @@ func innerLoadDB(db *stardb.StarDB, callback func(task Task)) (*Remind, error) {
|
|
|
|
for _, task := range res {
|
|
|
|
for _, task := range res {
|
|
|
|
itask := new(Task)
|
|
|
|
itask := new(Task)
|
|
|
|
*itask = task
|
|
|
|
*itask = task
|
|
|
|
tmr := startimer.NewTimer(time.Now())
|
|
|
|
tmr, err := startimer.NewTimer(time.Now())
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
err = tmr.ImportRepeats(itask.TmrInfo)
|
|
|
|
err = tmr.ImportRepeats(itask.TmrInfo)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|