Skip to content

Commit

Permalink
Merge pull request O365#554 from mw-deb/Issue553
Browse files Browse the repository at this point in the history
Fixed Issue O365#553
  • Loading branch information
Alejandro Casanovas authored Dec 10, 2020
2 parents 5a3c602 + e40da83 commit d7d7ee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions O365/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,10 +964,10 @@ def to_api_data(self, restrict_keys=None):
if self.has_attachments:
data[cc('attachments')] = self.__attachments.to_api_data()

if 'attachments' in restrict_keys:
self.attachments._update_attachments_to_cloud()

if restrict_keys:
if 'attachments' in restrict_keys:
self.attachments._update_attachments_to_cloud()

for key in list(data.keys()):
if key not in restrict_keys:
del data[key]
Expand Down

0 comments on commit d7d7ee4

Please sign in to comment.