Skip to content

Commit 50612d5

Browse files
committed
Change creation of attribute for call
1 parent 5fb188b commit 50612d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

O365/utils/utils.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,6 @@ class Query:
636636
'flag': 'flag/flagStatus',
637637
'body': 'body/content'
638638
}
639-
_select_mapping = {
640-
"meetingMessageType": "microsoft.graph.eventMessage/meetingMessageType",
641-
}
642639

643640
def __init__(self, attribute=None, *, protocol):
644641
""" Build a query to apply OData filters
@@ -865,8 +862,11 @@ def _get_mapping(self, attribute):
865862
return None
866863

867864
def _get_select_mapping(self, attribute):
868-
mapping = self._select_mapping.get(attribute)
869-
return mapping or attribute
865+
if attribute in ["meetingMessageType"]:
866+
return (
867+
f"{self.protocol.keyword_data_store['event_message_type']}/{attribute}"
868+
)
869+
return attribute
870870

871871
@fluent
872872
def new(self, attribute, operation=ChainOperator.AND):

0 commit comments

Comments
 (0)