From afb0a04fe600575b00d551da7dce6a08679ef7b8 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 26 May 2024 22:20:40 +0200 Subject: Working task selection --- db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db.go') diff --git a/db.go b/db.go index 363bc93..b37e103 100644 --- a/db.go +++ b/db.go @@ -70,7 +70,7 @@ func (db *InMemDb) StartNewEntry(now time.Time, task *Entry) (*Entry, error) { From: task.From, To: nil, Date: DateFromStd(now), - Tag: task.Tag, + Tasks: task.Tasks, Comment: task.Comment, } @@ -108,8 +108,8 @@ func (db *InMemDb) SaveEntry(entry *Entry) (*Entry, error) { existent := db.entries[entry.Id] existent.Comment = entry.Comment - existent.Tag = entry.Tag existent.From = entry.From + existent.Tasks = entry.Tasks existent.To = entry.To existent.Date = entry.Date return existent, nil -- cgit v1.2.3