forked from OrgGo/Tasks
code formatting
This commit is contained in:
parent
cf9cb0eea5
commit
8c0d0dc0fe
3
db/db.go
3
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=?")
|
||||
|
|
|
@ -2,9 +2,9 @@ package views
|
|||
|
||||
import (
|
||||
"bufio"
|
||||
"log"
|
||||
"github.com/thewhitetulip/Tasks/db"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
|
|
Loading…
Reference in New Issue