mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure sort field is html stripped in individual edits as well
This commit is contained in:
parent
f7b7d46b58
commit
2ae83e6e38
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,8 @@
|
|||
import time
|
||||
from anki.errors import AnkiError
|
||||
from anki.utils import fieldChecksum, intTime, \
|
||||
joinFields, splitFields, ids2str, parseTags, canonifyTags, hasTag
|
||||
joinFields, splitFields, ids2str, parseTags, canonifyTags, hasTag, \
|
||||
stripHTML
|
||||
|
||||
class Fact(object):
|
||||
|
||||
|
@ -43,8 +44,7 @@ select mid, gid, crt, mod, tags, flds, data from facts where id = ?""", self.id)
|
|||
|
||||
def flush(self):
|
||||
self.mod = intTime()
|
||||
# facts table
|
||||
sfld = self.fields[self._model.sortIdx()]
|
||||
sfld = stripHTML(self.fields[self._model.sortIdx()])
|
||||
tags = self.stringTags()
|
||||
res = self.deck.db.execute("""
|
||||
insert or replace into facts values (?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
|
|
Loading…
Reference in a new issue