improve filter for ponctual vevent exceptions (#27263)

To differentiate events between those coming from locally uploaded and remotely fetched
.ics files, we must look up the locally uploaded ones with a filter of
"recurrence_id=0".
This commit is contained in:
Benjamin Dauvergne 2018-10-12 11:44:54 +02:00
parent b364e11855
commit 1c577973d3
1 changed files with 1 additions and 0 deletions

View File

@ -529,6 +529,7 @@ class Desk(models.Model):
kwargs = {}
kwargs['desk'] = self
kwargs['recurrence_id'] = 0
if keep_synced_by_uid:
kwargs['external_id'] = vevent.contents['uid'][0].value
else: