code formatting

This commit is contained in:
Suraj patil 2016-01-10 19:27:41 +05:30
parent cf9cb0eea5
commit 8c0d0dc0fe
2 changed files with 2 additions and 3 deletions

View File

@ -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=?")

View File

@ -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"