remove the rest of the obsolote rebuildTypes() code

This commit is contained in:
Damien Elmes 2010-11-15 14:27:52 +09:00
parent 26470c997e
commit 1cd5125d4e

View file

@ -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