diff --git a/db/db.go b/db/db.go index d9f30a1..49f07b6 100644 --- a/db/db.go +++ b/db/db.go @@ -2,9 +2,9 @@ package db import ( "database/sql" - "log" _ "github.com/mattn/go-sqlite3" //we want to use sqlite natively "github.com/thewhitetulip/Tasks/types" + "log" "strings" "time" ) @@ -168,7 +168,6 @@ func RestoreTask(id int) error { return err } - //RestoreTask is used to restore tasks from the Trash func RestoreTaskFromComplete(id int) error { restoreSQL, err := database.Prepare("update task set finish_date=null,last_modified_at=datetime() where id=?") diff --git a/views/views.go b/views/views.go index 7c9e9b3..7b6189e 100644 --- a/views/views.go +++ b/views/views.go @@ -2,9 +2,9 @@ package views import ( "bufio" - "log" "github.com/thewhitetulip/Tasks/db" "io/ioutil" + "log" "net/http" "os" "strconv"