From 2e212d67733345f000abf8efd794313584ed2bc9 Mon Sep 17 00:00:00 2001 From: Debin Li Date: Fri, 13 May 2022 13:42:44 -0400 Subject: [PATCH] Code cleanup, remove unneeded IF statement logic --- api/yelp_beans/send_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/yelp_beans/send_email.py b/api/yelp_beans/send_email.py index 6a722833..a85efde7 100644 --- a/api/yelp_beans/send_email.py +++ b/api/yelp_beans/send_email.py @@ -183,7 +183,7 @@ def create_google_calendar_invitation_link(user_list, title, office, location, m 'location': office + " " + location, 'add': ','.join([user.email for user in user_list]) } - if meeting_datetime.tzinfo and meeting_datetime.tzinfo.zone and "ctz" not in url_params: + if meeting_datetime.tzinfo and meeting_datetime.tzinfo.zone: # If the meeting time have a timezone specified # and Calendar URL link doesn't contain timezone # Add the "ctz" parameter to Google's Calendar template link