summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-12-08 21:42:01 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-12-08 21:43:35 +0100
commit338e556f8d8e1a29e3df04cfad93e291b3b61ab0 (patch)
treea6a771fec314d42af7be4f93f7fdf0cb4e1235af
parente70b41bda98a3acca2fa5e6f922efccdb1d6a866 (diff)
downloadcalcurse-338e556f8d8e1a29e3df04cfad93e291b3b61ab0.tar.gz
calcurse-338e556f8d8e1a29e3df04cfad93e291b3b61ab0.zip
calcurse-caldav: Fix appointment imports
When importing an appointment from the server, make sure we store a hash of the item in the sync DB, and not the serialized item itself. Reported-by: Guillaume Laurès <guillaume@lauresfamily.fr> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 35bc8cb..13e4388 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -46,6 +46,7 @@ def calcurse_wipe():
def calcurse_import(icaldata):
p = subprocess.Popen([calcurse, '-i', '-', '--dump-imported', '-q',
+ '--format-apt=%(hash)\\n',
'--format-recur-apt=%(hash)\\n',
'--format-event=%(hash)\\n',
'--format-recur-event=%(hash)\\n',