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 (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"log"
|
|
||||||
_ "github.com/mattn/go-sqlite3" //we want to use sqlite natively
|
_ "github.com/mattn/go-sqlite3" //we want to use sqlite natively
|
||||||
"github.com/thewhitetulip/Tasks/types"
|
"github.com/thewhitetulip/Tasks/types"
|
||||||
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -168,7 +168,6 @@ func RestoreTask(id int) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//RestoreTask is used to restore tasks from the Trash
|
//RestoreTask is used to restore tasks from the Trash
|
||||||
func RestoreTaskFromComplete(id int) error {
|
func RestoreTaskFromComplete(id int) error {
|
||||||
restoreSQL, err := database.Prepare("update task set finish_date=null,last_modified_at=datetime() where id=?")
|
restoreSQL, err := database.Prepare("update task set finish_date=null,last_modified_at=datetime() where id=?")
|
||||||
|
|
|
@ -2,9 +2,9 @@ package views
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"log"
|
|
||||||
"github.com/thewhitetulip/Tasks/db"
|
"github.com/thewhitetulip/Tasks/db"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
Loading…
Reference in New Issue