implemented modifing of tasks of an event

This commit is contained in:
z1glr
2025-01-13 22:22:10 +00:00
parent 0685283007
commit a3c6fd685d
12 changed files with 468 additions and 288 deletions

View File

@@ -9,7 +9,7 @@ import (
)
type tasksDB struct {
Id int `db:"id"`
ID int `db:"id"`
Text string `db:"text"`
Disabled bool `db:"disabled"`
}
@@ -40,7 +40,7 @@ func refresh() {
tasks := map[int]Task{}
for _, a := range tasksRaw {
tasks[a.Id] = Task{
tasks[a.ID] = Task{
Text: a.Text,
Disabled: a.Disabled,
}