mirror of
https://github.com/ankitects/anki.git
synced 2025-12-11 05:46:55 -05:00
fix tag saving in notes
This commit is contained in:
parent
1852e32183
commit
2317574f02
1 changed files with 1 additions and 3 deletions
|
|
@ -50,7 +50,6 @@ class Note:
|
||||||
self.fields = list(n.fields)
|
self.fields = list(n.fields)
|
||||||
self._fmap = self.col.models.fieldMap(self.model())
|
self._fmap = self.col.models.fieldMap(self.model())
|
||||||
|
|
||||||
# fixme: only save tags in list on save
|
|
||||||
def to_backend_note(self) -> BackendNote:
|
def to_backend_note(self) -> BackendNote:
|
||||||
hooks.note_will_flush(self)
|
hooks.note_will_flush(self)
|
||||||
return BackendNote(
|
return BackendNote(
|
||||||
|
|
@ -59,8 +58,7 @@ class Note:
|
||||||
ntid=self.mid,
|
ntid=self.mid,
|
||||||
mtime_secs=self.mod,
|
mtime_secs=self.mod,
|
||||||
usn=self.usn,
|
usn=self.usn,
|
||||||
# fixme: catch spaces in individual tags
|
tags=self.tags,
|
||||||
tags=" ".join(self.tags).split(" "),
|
|
||||||
fields=self.fields,
|
fields=self.fields,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue