Skip to content

Commit

Permalink
replaced temporal bucket for image_base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian committed Jun 16, 2023
1 parent 5682976 commit 21c8466
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/utils/email_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def send_invitation_email(ses, uuid, email, borrower_name, buyer_name, tender_ti


def send_mail_intro_reminder(ses, uuid, email, borrower_name, buyer_name, tender_title):
images_base_url = get_images_base_url()
data = {
**generate_common_data(),
"AWARD_SUPPLIER_NAME": borrower_name,
Expand All @@ -121,8 +122,8 @@ def send_mail_intro_reminder(ses, uuid, email, borrower_name, buyer_name, tender
+ "/application/"
+ quote(uuid)
+ "/intro",
"FIND_OUT_MORE_IMAGE_LINK": app_settings.temporal_bucket + "/findoutmore.png",
"REMOVE_ME_IMAGE_LINK": app_settings.temporal_bucket + "/removeme.png",
"FIND_OUT_MORE_IMAGE_LINK": images_base_url + "/findoutmore.png",
"REMOVE_ME_IMAGE_LINK": images_base_url + "/removeme.png",
"REMOVE_ME_URL": app_settings.frontend_url
+ "/application/"
+ quote(uuid)
Expand All @@ -149,6 +150,7 @@ def send_mail_intro_reminder(ses, uuid, email, borrower_name, buyer_name, tender
def send_mail_submit_reminder(
ses, uuid, email, borrower_name, buyer_name, tender_title
):
images_base_url = get_images_base_url()
data = {
**generate_common_data(),
"AWARD_SUPPLIER_NAME": borrower_name,
Expand All @@ -158,8 +160,8 @@ def send_mail_submit_reminder(
+ "/application/"
+ quote(uuid)
+ "/intro",
"APPLY_FOR_CREDIT_IMAGE_LINK": "https://adrian-personal.s3.sa-east-1.amazonaws.com/applyForCredit.png",
"REMOVE_ME_IMAGE_LINK": app_settings.temporal_bucket + "/removeme.png",
"APPLY_FOR_CREDIT_IMAGE_LINK": images_base_url + "/applyForCredit.png",
"REMOVE_ME_IMAGE_LINK": images_base_url + "/removeme.png",
"REMOVE_ME_URL": app_settings.frontend_url
+ "/application/"
+ quote(uuid)
Expand Down

0 comments on commit 21c8466

Please sign in to comment.