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:
parent
e70b41bda9
commit
338e556f8d
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user