summaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2024-05-26 22:20:40 +0200
committerJulian T <julian@jtle.dk>2024-05-29 22:25:47 +0200
commitafb0a04fe600575b00d551da7dce6a08679ef7b8 (patch)
tree8f90720887cf49045d65a9d17dad984dae06275c /db.go
parent9b55b16f3b906958171b4f45002b58d5f77b9705 (diff)
Working task selectionHEADmain
Diffstat (limited to 'db.go')
-rw-r--r--db.go4
1 files changed, 2 insertions, 2 deletions
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