mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix searching when sorting by fact created
This commit is contained in:
parent
966effe37b
commit
091b84956f
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class DeckModel(QAbstractTableModel):
|
|||
select cards.id from cards, facts
|
||||
where cards.factId = facts.id """
|
||||
if ads:
|
||||
query += ads + " "
|
||||
query += "and " + ads + " "
|
||||
else:
|
||||
query = "select id from cards "
|
||||
if ads:
|
||||
|
|
Loading…
Reference in a new issue