summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-12 09:44:54 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-22 10:08:45 (GMT)
commit07402527c2002f9636243886666741602f508b8f (patch)
treee0d23859d3aa83428c3513d6af49acc6f2e23f48
parentb364e11855437dac54f74610613b5aef8d1e4d4e (diff)
downloadchrono-0.66.zip
chrono-0.66.tar.gz
chrono-0.66.tar.bz2
improve filter for ponctual vevent exceptions (#27263)v0.66
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".
-rw-r--r--chrono/agendas/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrono/agendas/models.py b/chrono/agendas/models.py
index 968fb7e..f414c26 100644
--- a/chrono/agendas/models.py
+++ b/chrono/agendas/models.py
@@ -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: