Skip to content

Commit

Permalink
Fix week sheet multi log issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen Premaratne committed Apr 29, 2020
1 parent 6935296 commit 457370a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions atlassian.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,15 @@ func (w *WeekLog) print() {
}
}
fmt.Printf("| %-15s ", issue)
for _, v := range daysOfWeek {
if day[v][0] == 0 {
for _, dDay := range daysOfWeek {
var dDayTotal int
for _, dDayTime := range day[dDay] {
dDayTotal += dDayTime
}
if dDayTotal == 0 {
fmt.Printf("| %-10s ", "")
} else {
fmt.Printf("| %-10.1f ", getInHours(day[v][0]))
fmt.Printf("| %-10.1f ", getInHours(dDayTotal))
}
}
fmt.Println("|")
Expand Down

0 comments on commit 457370a

Please sign in to comment.