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>
This commit is contained in:
Lukas Fleischer 2016-12-08 21:42:01 +01:00
parent e70b41bda9
commit 338e556f8d

View File

@ -46,6 +46,7 @@ def calcurse_wipe():
def calcurse_import(icaldata): def calcurse_import(icaldata):
p = subprocess.Popen([calcurse, '-i', '-', '--dump-imported', '-q', p = subprocess.Popen([calcurse, '-i', '-', '--dump-imported', '-q',
'--format-apt=%(hash)\\n',
'--format-recur-apt=%(hash)\\n', '--format-recur-apt=%(hash)\\n',
'--format-event=%(hash)\\n', '--format-event=%(hash)\\n',
'--format-recur-event=%(hash)\\n', '--format-recur-event=%(hash)\\n',