Skip to content

Commit

Permalink
maybe fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Smith committed Dec 17, 2023
1 parent 7e17f13 commit ff197d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/api/webhooks/paypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,18 @@ async def process_notification(
)

fields: list[dict[str, Any]] = [
{"name": "User ID", "value": user_id},
{"name": "User ID", "value": f"{user_id}"},
{"name": "Username", "value": username},
{"name": "Donation Tier", "value": donation_tier},
{"name": "Donation Months", "value": donation_months},
{"name": "Donation Amount", "value": donation_amount},
{"name": "Donation Months", "value": f"{donation_months}"},
{"name": "Donation Amount", "value": f"{donation_amount:.2f}"},
{"name": "Donation Currency", "value": donation_currency},
{"name": "New Privileges", "value": privileges},
{"name": "New Privileges", "value": f"{privileges}"},
{
"name": "New Donor Expire",
"value": datetime.fromtimestamp(donor_expire).isoformat(),
},
{"name": "New User Badges", "value": user_badge_ids},
{"name": "New User Badges", "value": f"{user_badge_ids}"},
{"name": "Transaction ID", "value": transaction_id},
]
webhook = AsyncDiscordWebhook(
Expand Down

0 comments on commit ff197d3

Please sign in to comment.