forgot to remove log
This commit is contained in:
parent
5119a5d91f
commit
963fcde8c8
|
@ -121,7 +121,6 @@ func GetTasks(status, category string) (types.Context, error) {
|
||||||
if task.Priority != "1" { // if priority is not 1 then calculate, else why bother?
|
if task.Priority != "1" { // if priority is not 1 then calculate, else why bother?
|
||||||
CurrentTime := time.Now().Local()
|
CurrentTime := time.Now().Local()
|
||||||
diff := CurrentTime.Sub(TaskCreated).Hours()
|
diff := CurrentTime.Sub(TaskCreated).Hours()
|
||||||
log.Println(diff)
|
|
||||||
if diff > 168 {
|
if diff > 168 {
|
||||||
task.IsOverdue = true // If one week then overdue by default
|
task.IsOverdue = true // If one week then overdue by default
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue