From 34208ad5c953a5cf791718f683cddaf773e332f2 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Thu, 7 Sep 2023 13:20:12 -0500 Subject: [PATCH] Updated go-timertxt library --- cli/cli.go | 2 +- ui/list_timers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 19fbb04..c50d085 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -38,7 +38,7 @@ func (p *Program) LoadTimerList() error { if err != nil { return err } - tl.Sort(timertxt.SORT_UNFINISHED_START) + tl.Sort(timertxt.SortUnfinishedStart) p.TimerList = tl return nil } diff --git a/ui/list_timers.go b/ui/list_timers.go index 5bee077..570a0ed 100644 --- a/ui/list_timers.go +++ b/ui/list_timers.go @@ -97,8 +97,8 @@ func (s *listTimersScreen) Init() wandle.Cmd { s.fullList.AddTimers(s.timerList.GetTimerSlice()) s.fullList.AddTimers(s.doneList.GetTimerSlice()) s.timerFilterList, s.doneFilterList = s.timerList, s.doneList - s.timerFilterList.Sort(timertxt.SORT_START_DATE_DESC) - s.doneFilterList.Sort(timertxt.SORT_START_DATE_DESC) + s.timerFilterList.Sort(timertxt.SortStartDateDesc) + s.doneFilterList.Sort(timertxt.SortStartDateDesc) s.updateFullFilterList() w, h := termbox.Size() s.choiceMenu.SetBorder(wandle.BRD_CSIMPLE)