mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
temporarily disable history, add canonifyTags
This commit is contained in:
parent
6d358c9166
commit
c130dac060
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue