Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaYousefpourM authored Jan 14, 2025
1 parent 89fd523 commit f923a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def google_calendar_link(self):
base_url = "https://www.google.com/calendar/render?action=TEMPLATE"
workshop_title = escape(self.name)
workshop_description = escape(self.desc)
start_datetime = self.start_date.strftime("%Y%m%dT%H%M%S")
end_datetime = self.end_date.strftime("%Y%m%dT%H%M%S")
start_datetime = (self.start_date + timedelta(hours=3, minutes=30)).strftime("%Y%m%dT%H%M%S")
end_datetime = (self.end_date + timedelta(hours=3, minutes=30)).strftime("%Y%m%dT%H%M%S")

teachers_names = " ".join([teacher.name for teacher in self.teachers.all()])
event_details = f"Teachers: {teachers_names}\nDescription: {workshop_description}"
Expand Down

0 comments on commit f923a96

Please sign in to comment.