Skip to content

Commit

Permalink
portfolio ordered by sections, make sure total is at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
howeyc committed Jun 28, 2018
1 parent 25cbb26 commit 5e8ca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lweb/handler_portfolio.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func portfolioHandler(w http.ResponseWriter, r *http.Request, params martini.Par
pData.Stocks = append(pData.Stocks, <-siChan)
}

stotal := stockInfo{Name: "Total", Section: "Total", Type: "Total"}
stotal := stockInfo{Name: "Total", Section: "zzzTotal", Type: "Total"}
for _, si := range pData.Stocks {
sectionInfo := sectionTotals[si.Section]
sectionInfo.Name = si.Section
Expand Down

0 comments on commit 5e8ca1b

Please sign in to comment.