From 0b3f2ab6388ccdf0747cdba276f3f8046efb0206 Mon Sep 17 00:00:00 2001 From: Suraj Patil Date: Sun, 7 Aug 2016 10:02:47 +0530 Subject: [PATCH] Remove concept of overdue --- db/tasks.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/db/tasks.go b/db/tasks.go index cfb641f..52dde8d 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -132,13 +132,13 @@ func GetTasks(username, status, category string) (types.Context, error) { } TaskCreated = TaskCreated.Local() - if task.Priority != "1" { // if priority is not 1 then calculate, else why bother? - CurrentTime := time.Now().Local() - diff := CurrentTime.Sub(TaskCreated).Hours() - if diff > 168 { - task.IsOverdue = true // If one week then overdue by default - } - } + // if task.Priority != "1" { // if priority is not 1 then calculate, else why bother? + // CurrentTime := time.Now().Local() + // diff := CurrentTime.Sub(TaskCreated).Hours() + // if diff > 168 { + // task.IsOverdue = true // If one week then overdue by default + // } + // } task.Created = TaskCreated.Format("Jan 2 2006") tasks = append(tasks, task)