mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove the rest of the obsolote rebuildTypes() code
This commit is contained in:
parent
26470c997e
commit
1cd5125d4e
1 changed files with 0 additions and 5 deletions
|
@ -352,11 +352,6 @@ Card info: %d %d %d""" % (self.failedSoonCount, self.revCount, self.newCountToda
|
||||||
|
|
||||||
def rebuildTypes(self):
|
def rebuildTypes(self):
|
||||||
"Rebuild the type cache. Only necessary on upgrade."
|
"Rebuild the type cache. Only necessary on upgrade."
|
||||||
lim = "type >= 0" # don't touch suspended cards
|
|
||||||
if where:
|
|
||||||
where += " and " + lim
|
|
||||||
else:
|
|
||||||
where = " where " + lim
|
|
||||||
self.s.statement("""
|
self.s.statement("""
|
||||||
update cards set
|
update cards set
|
||||||
type = (case
|
type = (case
|
||||||
|
|
Loading…
Reference in a new issue