wbintegrator_office365 1.55.5__tar.gz → 1.55.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/PKG-INFO +1 -1
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/models/event.py +1 -1
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tasks.py +7 -4
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/.gitignore +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/pyproject.toml +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/admin.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/apps.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/configurations/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/configurations/configurations/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/dynamic_preferences_registry.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/factories.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/filters.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/importer/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/importer/api.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/importer/disable_signals.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/importer/parser.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/kpi_handlers/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/kpi_handlers/calls.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/migrations/0001_initial_squashed_squashed_0003_alter_calendar_owner_alter_calendarevent_organizer_and_more.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/migrations/0002_remove_calendar_owner_remove_calendarevent_activity_and_more.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/migrations/0003_alter_event_options.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/migrations/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/models/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/models/subscription.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/models/tenant.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/serializers.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/templates/admin/tenant_change_list.html +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/conftest.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/test_admin.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/test_models.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/test_tasks.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/test_views.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tests/tests.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/urls.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/__init__.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/display.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/endpoints.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/menu.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/titles.py +0 -0
- {wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/viewsets/viewsets.py +0 -0
@@ -293,7 +293,7 @@ class CallUser(WBModel):
|
|
293
293
|
def get_humanized_repr(self) -> str | None:
|
294
294
|
if self.tenant_user:
|
295
295
|
if self.tenant_user.profile:
|
296
|
-
return
|
296
|
+
return self.tenant_user.profile.computed_str
|
297
297
|
elif self.tenant_user.mail or self.tenant_user.display_name:
|
298
298
|
mail = self.tenant_user.mail if self.tenant_user.mail else self.tenant_user.id
|
299
299
|
return f"{self.tenant_user.display_name}({mail})"
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/tasks.py
RENAMED
@@ -39,7 +39,7 @@ def send_call_summary(
|
|
39
39
|
profiles = profiles.filter(user_account__in=Group.objects.get(id=group_id).user_set.all())
|
40
40
|
|
41
41
|
end_date = date.today()
|
42
|
-
start_date = end_date - timedelta(days=offset)
|
42
|
+
start_date = end_date - timedelta(days=offset + 1)
|
43
43
|
if offset == 0:
|
44
44
|
frequency_repr = "Daily"
|
45
45
|
date_repr = start_date.strftime("%Y-%m-%d")
|
@@ -77,7 +77,7 @@ def send_call_summary(
|
|
77
77
|
</div>
|
78
78
|
"""
|
79
79
|
if include_detail:
|
80
|
-
for call_date in call_events.dates("start", "day"):
|
80
|
+
for call_date in call_events.dates("start", "day", order="DESC"):
|
81
81
|
call_day_events = call_events.filter(start__date=call_date)
|
82
82
|
if call_day_events.exists():
|
83
83
|
message += f"<p><b>{call_date:%Y-%m-%d}:</b></p>"
|
@@ -103,17 +103,20 @@ def send_call_summary(
|
|
103
103
|
<td style='border: 1px solid #ddd;padding: 2px; width: 20px;' >{call.start.astimezone():%H:%M}</td> \
|
104
104
|
<td style='border: 1px solid #ddd;padding: 2px; width: 20px;' >{call.end.astimezone():%H:%M}</td> \
|
105
105
|
<td style='border: 1px solid #ddd;padding: 2px; width: 60px;' text-align:center;><b>{format_td(call.end - call.start)}</b></td> \
|
106
|
-
<td style='border: 1px solid #ddd;padding: 2px; width: 80px;' ><b>{call.organizer}</b></td> \
|
106
|
+
<td style='border: 1px solid #ddd;padding: 2px; width: 80px;' ><b>{call.organizer.get_humanized_repr()}</b></td> \
|
107
107
|
<td style='border: 1px solid #ddd;padding: 2px; width: 150px;' >{participants}</td> \
|
108
108
|
</tr>"
|
109
109
|
message += "</table><br/>"
|
110
110
|
|
111
111
|
message += "</div>"
|
112
|
+
title = f"Call summary - {date_repr}"
|
113
|
+
if include_detail:
|
114
|
+
title = "Detailed " + title
|
112
115
|
for to_email in to_emails:
|
113
116
|
recipient = get_user_model().objects.get(email=to_email)
|
114
117
|
send_notification(
|
115
118
|
code="wbintegrator_office365.callevent.call_summary",
|
116
|
-
title=
|
119
|
+
title=title,
|
117
120
|
body=message,
|
118
121
|
user=recipient,
|
119
122
|
)
|
File without changes
|
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/__init__.py
RENAMED
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/admin.py
RENAMED
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/apps.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/factories.py
RENAMED
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/filters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{wbintegrator_office365-1.55.5 → wbintegrator_office365-1.55.6}/wbintegrator_office365/urls.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|