fix tag saving in notes

This commit is contained in:
Damien Elmes 2020-05-05 22:14:25 +10:00
parent 1852e32183
commit 2317574f02

View file

@ -50,7 +50,6 @@ class Note:
self.fields = list(n.fields)
self._fmap = self.col.models.fieldMap(self.model())
# fixme: only save tags in list on save
def to_backend_note(self) -> BackendNote:
hooks.note_will_flush(self)
return BackendNote(
@ -59,8 +58,7 @@ class Note:
ntid=self.mid,
mtime_secs=self.mod,
usn=self.usn,
# fixme: catch spaces in individual tags
tags=" ".join(self.tags).split(" "),
tags=self.tags,
fields=self.fields,
)