Skip to content

Commit

Permalink
Added a printout
Browse files Browse the repository at this point in the history
  • Loading branch information
Emyrk committed Jun 11, 2017
1 parent 1556355 commit a3edd1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/controllers/dataCalls.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ func (r AppAuthRequired) LendingHistory() revel.Result {

//to cache
completeLoans, err := state.PoloniexAuthenticatedLendingHistory(u.Username, "", "", "100")
if err != nil {
completeLoans, err = state.PoloniexAuthenticatedLendingHistory(u.Username, "", "", "100")
}
if err != nil {
fmt.Printf("Error getting lend history for %s: %s\n", email, err.Error())
}
data := make(map[string]interface{})
data["CompleteLoans"] = completeLoans.Data
if len(completeLoans.Data) == 0 && revel.DevMode {
Expand Down

0 comments on commit a3edd1c

Please sign in to comment.