mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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._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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue