summaryrefslogtreecommitdiff
path: root/db.go
diff options
context:
space:
mode:
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