mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
import time
|
||||||
from anki.errors import AnkiError
|
from anki.errors import AnkiError
|
||||||
from anki.utils import fieldChecksum, intTime, \
|
from anki.utils import fieldChecksum, intTime, \
|
||||||
joinFields, splitFields, ids2str, parseTags, canonifyTags, hasTag
|
joinFields, splitFields, ids2str, parseTags, canonifyTags, hasTag, \
|
||||||
|
stripHTML
|
||||||
|
|
||||||
class Fact(object):
|
class Fact(object):
|
||||||
|
|
||||||
|
@ -43,8 +44,7 @@ select mid, gid, crt, mod, tags, flds, data from facts where id = ?""", self.id)
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
self.mod = intTime()
|
self.mod = intTime()
|
||||||
# facts table
|
sfld = stripHTML(self.fields[self._model.sortIdx()])
|
||||||
sfld = self.fields[self._model.sortIdx()]
|
|
||||||
tags = self.stringTags()
|
tags = self.stringTags()
|
||||||
res = self.deck.db.execute("""
|
res = self.deck.db.execute("""
|
||||||
insert or replace into facts values (?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
insert or replace into facts values (?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||||
|
|
Loading…
Reference in a new issue