diff options
| author | Stuart Skelton <stuarts@broadbean.com> | 2017-08-12 17:39:42 +0100 |
|---|---|---|
| committer | Stuart Skelton <stuarts@broadbean.com> | 2017-08-12 17:39:42 +0100 |
| commit | 01b81d64e1efa669d1c36c76d0561182c652066e (patch) | |
| tree | 7b2b4c20ff4a3e1d2ae59a87af06f69dab52bb2b /todolist | |
| parent | a09d207bd5bab0ab1c9af06bd1c2deb65fa43731 (diff) | |
Add a filterOn function to the filterDay func
Diffstat (limited to 'todolist')
| -rw-r--r-- | todolist/date_filter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/date_filter.go b/todolist/date_filter.go index dadf101..261e5ad 100644 --- a/todolist/date_filter.go +++ b/todolist/date_filter.go @@ -114,7 +114,7 @@ func (f *DateFilter) filterCompletedToday(pivot time.Time) []*Todo { func (f *DateFilter) filterDay(pivot time.Time, day time.Weekday) []*Todo { thisWeek := NewDateFilter(f.filterThisWeek(pivot)) pivot = f.FindSunday(pivot).AddDate(0, 0, int(day)) - return thisWeek.filterToExactDate(pivot) + return thisWeek.filterToExactDate(pivot, filterOnDue) } func (f *DateFilter) filterBetweenDatesInclusive(begin, end time.Time, filterOn func(*Todo) string) []*Todo { |
