updated db for priority

This commit is contained in:
Suraj 2016-01-28 20:43:52 +05:30
parent 43bd75fe78
commit 879da86284
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ func DeleteTask(id int) error {
//AddTask is used to add the task in the database //AddTask is used to add the task in the database
func AddTask(title, content string, taskPriority int) error { func AddTask(title, content string, taskPriority int) error {
restoreSQL, err := database.Prepare("insert into task(title, content, priority, created_date, last_modified_at) values(?,?,datetime(), datetime())") restoreSQL, err := database.Prepare("insert into task(title, content, priority, created_date, last_modified_at) values(?,?,?,datetime(), datetime())")
if err != nil { if err != nil {
log.Println(err) log.Println(err)
} }