Skip to content

Commit 2897795

Browse files
authored
Merge pull request #1160 from RogerSelwyn/query_builder
Handle meetingmessagetype
2 parents ea6a8cc + 393f3ef commit 2897795

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

O365/utils/query.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,10 @@ def select(self, *attributes: str) -> SelectFilter:
713713
"""
714714
select = SelectFilter()
715715
for attribute in attributes:
716-
select.append(self.protocol.convert_case(attribute))
716+
attribute = self.protocol.convert_case(attribute)
717+
if attribute.lower() in ["meetingmessagetype"]:
718+
attribute = f"{self.protocol.keyword_data_store['event_message_type']}/{attribute}"
719+
select.append(attribute)
717720
return select
718721

719722
def expand(self, relationship: str, select: Optional[SelectFilter] = None) -> ExpandFilter:

O365/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def _get_mapping(self, attribute):
862862
return None
863863

864864
def _get_select_mapping(self, attribute):
865-
if attribute in ["meetingMessageType"]:
865+
if attribute.lower() in ["meetingMessageType"]:
866866
return (
867867
f"{self.protocol.keyword_data_store['event_message_type']}/{attribute}"
868868
)

0 commit comments

Comments
 (0)