mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix a bug caused by sqlite not understanding unicode case
This commit is contained in:
parent
c916478868
commit
4437024ecc
1 changed files with 2 additions and 1 deletions
|
@ -831,7 +831,8 @@ and priority in (1,2,3,4) and type in (0, 1)""", time=time)
|
||||||
for s in (self.lowPriority, self.medPriority,
|
for s in (self.lowPriority, self.medPriority,
|
||||||
self.highPriority, self.suspended):
|
self.highPriority, self.suspended):
|
||||||
tagIds(self.s, parseTags(s))
|
tagIds(self.s, parseTags(s))
|
||||||
tags = self.s.all("select lower(tag), id, priority from tags")
|
tags = self.s.all("select tag, id, priority from tags")
|
||||||
|
tags = [(x[0].lower(), x[1], x[2]) for x in tags]
|
||||||
up = {}
|
up = {}
|
||||||
for (type, pri) in ((self.lowPriority, 1),
|
for (type, pri) in ((self.lowPriority, 1),
|
||||||
(self.medPriority, 3),
|
(self.medPriority, 3),
|
||||||
|
|
Loading…
Reference in a new issue