Skip to content

Commit

Permalink
Update dbFunctions.py
Browse files Browse the repository at this point in the history
wrong value passed for amount when updating trans log
  • Loading branch information
mtrogman authored Nov 24, 2024
1 parent a71b9a2 commit c489271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dbFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def log_transaction(information):
# Extract data for each user
description = information.get('what', 'Transaction') # General description
entity_id = user.get('primaryEmail', 'general_cost') # Email or 'general_cost'
amount = user.get('newPaidAmount', 0.00) # Payment amount
amount = user.get('paymentAmount', 0.00) # Payment amount
payment_method = user.get('paymentMethod', 'Unknown') # Payment method
if description == "payment":
term_length = user.get('term_length', "") + "Months"
Expand Down

0 comments on commit c489271

Please sign in to comment.