From 879da86284f907283ea5737a99f21591f0f7d368 Mon Sep 17 00:00:00 2001 From: Suraj Date: Thu, 28 Jan 2016 20:43:52 +0530 Subject: [PATCH] updated db for priority --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index 85196b7..c3924e0 100644 --- a/db/db.go +++ b/db/db.go @@ -210,7 +210,7 @@ func DeleteTask(id int) error { //AddTask is used to add the task in the database 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 { log.Println(err) }