temporarily disable history, add canonifyTags

This commit is contained in:
Damien Elmes 2008-10-19 18:46:05 +09:00
parent 6d358c9166
commit c130dac060
2 changed files with 5 additions and 0 deletions

View file

@ -591,6 +591,7 @@ values
stat.toDB(self.deck.s)
def bundleHistory(self):
return []
return self.realTuples(self.deck.s.all("""
select cardId, time, lastInterval, nextInterval, ease, delay,
lastFactor, nextFactor, reps, thinkingTime, yesCount, noCount

View file

@ -108,6 +108,10 @@ def parseTags(tags):
def joinTags(tags):
return u", ".join(tags)
def canonifyTags(tags):
"Strip leading/trailing/superfluous commas."
return joinTags(parseTags(tags))
def findTag(tag, tags):
"True if TAG is in TAGS. Ignore case."
return tag.lower() in [t.lower() for t in tags]