From 35a9918a9ed2e023ebbb5634cc70c8e9a21be086 Mon Sep 17 00:00:00 2001 From: karthikmurakonda Date: Tue, 25 Jul 2023 22:26:52 +0530 Subject: [PATCH] corrected email and subject of form response --- CDC_Backend/APIs/constants.py | 2 +- CDC_Backend/APIs/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CDC_Backend/APIs/constants.py b/CDC_Backend/APIs/constants.py index 23224b7..7f97005 100644 --- a/CDC_Backend/APIs/constants.py +++ b/CDC_Backend/APIs/constants.py @@ -45,7 +45,7 @@ DEGREE_CHOICES = [ TOTAL_BRANCHES = 4 # Total No of Branches TOTAL_BATCHES = 5 # Total No of Batches -CDC_MAIl_ADDRESS = '200010030@iitdh.ac.in' +CDC_MAIl_ADDRESS = 'cdc@iitdh.ac.in' # To be Configured Properly CLIENT_ID = os.environ.get('GOOGLE_OAUTH_CLIENT_ID') # Google Login Client ID diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py index bffbddc..6c93c5b 100644 --- a/CDC_Backend/APIs/utils.py +++ b/CDC_Backend/APIs/utils.py @@ -386,7 +386,7 @@ def send_opening_notifications(placement_id): "opening_type": 'Placement', "designation": placement.designation, "deadline": deadline_datetime.strftime("%A, %-d %B %Y, %-I:%M %p"), - "link": PLACEMENT_OPENING_URL.format(id=placement.id) + "link": PLACEMENT_OPENING_URL.format(id=placement.designation) } sendEmail(student_user.email, subject, data, NOTIFY_STUDENTS_OPENING_TEMPLATE) except Http404: