diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-02 02:14:42 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-02 02:14:42 +0200 |
| commit | a4a53949409944ae1745a8ab16901fb9a21ac7c4 (patch) | |
| tree | 8a7840c1e6f1146961c76914abf9ec3613a2750c /sqlite.go | |
| parent | ba96c6fae2ca3ea3399934ffd010cecfbaec273c (diff) | |
new IsSure
Diffstat (limited to 'sqlite.go')
| -rw-r--r-- | sqlite.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -978,7 +978,7 @@ func deleteBill(id int) { hsum := sumFloatArray(string2FloatArray(hours,";")) msum := sumFloatArray(string2FloatArray(moneys,";")) fmt.Printf("%v: For %v- %v (%v) - %.1f[h] : %.2f[€]\n",identity,custr,prstr,date.Local().Format("2006 Mon Jan _2"),hsum,msum) - if isSure("Are You Sure?") { + if isInterSure("Are You Sure?") { uncheckTasks(id) //Set corresponding Tasks to checkout=0 stmt, err := db.Prepare("DELETE FROM bills WHERE id = ?") checkErr(err) @@ -1010,7 +1010,7 @@ func deleteTask(id int) { //fmt.Println(boldGreen("Delete Task", id)) dur := float64(stop.Sub(start))/(1000000000*60*60) fmt.Printf("%v: %v (%v-%v) - %.2f h\n",prj,task,start.Local().Format("2006 Mon Jan _2 15:04"),stop.Local().Format("15:04"),dur) - if isSure("Are You Sure?") { + if isInterSure("Are You Sure?") { stmt, err := db.Prepare("DELETE FROM timetable WHERE id = ?") checkErr(err) _, err = stmt.Exec(id) |
