feat(Packagers): combined get and post into a file, added condition of no excel file to read and write

This commit is contained in:
2024-12-07 19:48:55 -07:00
parent 8e98eeee64
commit a9460dc692
12 changed files with 192 additions and 258 deletions

View File

@ -4,12 +4,20 @@ from email.mime.text import MIMEText
from datetime import datetime, timedelta
import pytz # For timezone handling
def send_email(interviewee_email="darkicewolf50@gmail.com", interviewee_name="brock", date="10-1-2024", start_time="10:00 AM", location ="ENC25"):
"""
TODO add
"""
def send_email(interviewee_email="darkicewolf50@gmail.com", interviewee_name="brock", date="2024-1-10", start_time="10:00:00", location ="ENC25"):
"""
Sends an email notification to the interviewee and a static Gmail account.
Sends an email notification to the interviewee and to the uofcbaja account
``REQUIRES``: interviewee_email (str), interviewee_name (str), date (str), start_time (str)
``PROMISES``: Sends an email to interviewee and static email on successful appointment booking.
``REQUIRES``: ``str`` interviewee_email, ``str`` interviewee_name, ``str`` date, ``str`` start_time
``PROMISES``: ``EMAIL`` Sends an email to interviewee and static email on successful appointment booking.
``Developed by``: Ahmad
``Contact``: ahmad.ahmad1@ucalgary.ca
"""
# Define static email for notifications and Gmail credentials
static_email = "uofcbaja.noreply@gmail.com"