Skip to content

Commit ea6a8cc

Browse files
authored
Merge pull request #1154 from RogerSelwyn/issue_684
Add mapping for complex attributes
2 parents ee6c07c + 50612d5 commit ea6a8cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

O365/utils/utils.py

+8
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ def select(self, *attributes):
685685
if '/' in attribute:
686686
# only parent attribute can be selected
687687
attribute = attribute.split('/')[0]
688+
attribute = self._get_select_mapping(attribute)
688689
self._selects.add(attribute)
689690
else:
690691
if self._attribute:
@@ -860,6 +861,13 @@ def _get_mapping(self, attribute):
860861
return attribute
861862
return None
862863

864+
def _get_select_mapping(self, attribute):
865+
if attribute in ["meetingMessageType"]:
866+
return (
867+
f"{self.protocol.keyword_data_store['event_message_type']}/{attribute}"
868+
)
869+
return attribute
870+
863871
@fluent
864872
def new(self, attribute, operation=ChainOperator.AND):
865873
""" Combine with a new query

0 commit comments

Comments
 (0)