mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add tags based on user's priorities
This commit is contained in:
parent
36421cf166
commit
1234420cb7
1 changed files with 4 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue