Skip to content

Commit

Permalink
fix number formatting for #177
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Aug 14, 2024
1 parent 804b61d commit 4b4faa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions auctions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,13 +1154,13 @@ def auctionReport(request, slug):
invoiceTotal = invoice.rounded_net
except:
invoiceStatus = ""
totalSpent = "0"
totalPaid = "0"
invoiceTotal = ""
totalSpent = 0
totalPaid = 0
invoiceTotal = 0
writer.writerow([data.createdon.strftime("%m-%d-%Y"), data.bidder_number, username, data.name, data.email, \
data.phone_as_string, address, data.pickup_location, distance,\
club, len(lotsViewed), len(lotsBid), len(lotsSumbitted), \
len(lotsWon), invoiceStatus, totalSpent, data.gross_sold, totalPaid, data.total_club_cut, invoiceTotal, len(breederPoints),\
len(lotsWon), invoiceStatus, f"{totalSpent:.2f}", f"{data.gross_sold:.2f}", f"{totalPaid:.2f}", f"{data.total_club_cut:.2f}", f"{invoiceTotal:.2f}", len(breederPoints),\
numberLotsOutsideAuction, profitOutsideAuction, data.time_spent_reading_rules, previous_auctions, number_of_userbans, account_age, data.memo])
return response
messages.error(request, "Your account doesn't have permission to view this page")
Expand Down

0 comments on commit 4b4faa0

Please sign in to comment.