diff --git a/src/routes/participant.py b/src/routes/participant.py index 4dd0a3b..7fa5d80 100644 --- a/src/routes/participant.py +++ b/src/routes/participant.py @@ -136,7 +136,7 @@ def register(slug: str): magic_link_url=magic_link_url, exchange_name=exchange.name, exchange_description=exchange.description, - budget_amount=float(exchange.budget.replace("$", "")), + budget=exchange.budget, gift_exchange_date=exchange.exchange_date.strftime("%Y-%m-%d"), ) except Exception as e: diff --git a/src/services/email.py b/src/services/email.py index 570bfd5..d89ff50 100644 --- a/src/services/email.py +++ b/src/services/email.py @@ -125,7 +125,7 @@ class EmailService: magic_link_url: str, exchange_name: str, exchange_description: str | None, - budget_amount: float, + budget: str, gift_exchange_date: str, ) -> Any: """Send registration confirmation email with magic link. @@ -136,7 +136,7 @@ class EmailService: magic_link_url: Full URL with magic token exchange_name: Name of the exchange exchange_description: Description of the exchange (optional) - budget_amount: Budget amount + budget: Budget description (e.g., "$25-50") gift_exchange_date: Date of gift exchange Returns: @@ -159,7 +159,7 @@ class EmailService: {description_html}