Skip to content

Commit

Permalink
fix: wakatime summaries view model index error
Browse files Browse the repository at this point in the history
  • Loading branch information
muety committed May 11, 2024
1 parent 7acaa83 commit 0f5bd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/compat/wakatime/v1/summaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ func newDataFrom(s *models.Summary) *SummariesData {
totalHrs, totalMins := int(total.Hours()), int((total - time.Duration(total.Hours())*time.Hour).Minutes())

data := &SummariesData{
Categories: make([]*SummariesEntry, 0),
Dependencies: make([]*SummariesEntry, 0),
Editors: make([]*SummariesEntry, len(s.Editors)),
Languages: make([]*SummariesEntry, len(s.Languages)),
Expand All @@ -160,6 +159,7 @@ func newDataFrom(s *models.Summary) *SummariesData {
Projects: make([]*SummariesEntry, len(s.Projects)),
Branches: make([]*SummariesEntry, len(s.Branches)),
Entities: make([]*SummariesEntry, len(s.Entities)),
Categories: make([]*SummariesEntry, len(s.Categories)),
GrandTotal: &SummariesGrandTotal{
Digital: fmt.Sprintf("%d:%d", totalHrs, totalMins),
Hours: totalHrs,
Expand Down

0 comments on commit 0f5bd41

Please sign in to comment.