Skip to content

Commit

Permalink
fix left long rebate email issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mittal-ishaan committed Jan 22, 2025
1 parent 928e1ca commit 3b9876f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/utils/django_email_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def send_html(subject, message, recipient):
Your long term rebate application from {start_date} to {end_date} has been {approved}.
{reason}
"""
left_message = """Note: Bills for {left_start_date} to {left_end_date} will be removed as an when you are allocated a caterer during this period.
left_message = """Note: Bills for {left_start_date} to {left_end_date} will be adjusted as an when you are allocated a caterer during this period.
"""

message_long_rebate_query = """
Expand Down Expand Up @@ -92,7 +92,7 @@ def long_rebate_mail(
added="removed from",
reason="",
)
if left_start_date is not None:
if len(left_start_date) > 0:
message += left_message.format(
left_start_date=left_start_date, left_end_date=left_end_date
)
Expand Down

0 comments on commit 3b9876f

Please sign in to comment.