From 1234420cb782792e9becfa0f5ba59cca028670b1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 28 Feb 2009 16:57:11 +0900 Subject: [PATCH] add tags based on user's priorities --- anki/deck.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/anki/deck.py b/anki/deck.py index b234c57eb..8c634ae43 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -722,6 +722,10 @@ and priority in (1,2,3,4) and type in (0, 1)""", time=time) def updateTagPriorities(self): "Update priority setting on tags table." + # make sure all priority tags exist + for s in (self.lowPriority, self.medPriority, + self.highPriority, self.suspended): + tagIds(self.s, parseTags(s)) tags = self.s.all("select lower(tag), id, priority from tags") up = {} for (type, pri) in ((self.lowPriority, 1),