From 2b5d9187ad4dda1c2608d846a5d466cfbe248f3a Mon Sep 17 00:00:00 2001 From: ILMIR Date: Wed, 24 Jan 2024 00:09:24 +0500 Subject: [PATCH] 15.0 itpp calendar meeting url (#4) * :ambulance: fix --- itpp_calendar_meeting_url/models/calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itpp_calendar_meeting_url/models/calendar.py b/itpp_calendar_meeting_url/models/calendar.py index ed36402..427be22 100644 --- a/itpp_calendar_meeting_url/models/calendar.py +++ b/itpp_calendar_meeting_url/models/calendar.py @@ -11,7 +11,7 @@ class Calendar(models.Model): @api.depends("start") def _compute_meeting_url(self): for rec in self: - rec.date_combination = rec.start.astimezone( + date_combination = rec.start.astimezone( tz=pytz.timezone("Asia/Yekaterinburg") ).strftime( "%Y%m%d" @@ -19,5 +19,5 @@ def _compute_meeting_url(self): # list of timezones: # https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568 rec.videocall_location = ( - "https://meet.jit.si/discussion_%s" % rec.date_combination + "https://meet.jit.si/discussion_%s" % date_combination )