mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
raise an exception when an invalid sort type is passed
This commit is contained in:
parent
a1693a3691
commit
74518264e0
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ and c.nid=n.id %s""" % (q, order)
|
||||||
sort = "c.ivl"
|
sort = "c.ivl"
|
||||||
else:
|
else:
|
||||||
raise Exception()
|
raise Exception()
|
||||||
|
else:
|
||||||
|
raise Exception()
|
||||||
return " order by " + sort
|
return " order by " + sort
|
||||||
|
|
||||||
def _findLimits(self):
|
def _findLimits(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue