From 59cb901a3ba29727101b9e7e6f1059dd867f7f8b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 5 Jan 2021 17:36:55 +0100 Subject: [PATCH] Change meaning of "is:learn" to filter on type, not queue --- rslib/src/search/sqlwriter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rslib/src/search/sqlwriter.rs b/rslib/src/search/sqlwriter.rs index 2bca01c5c..dcc87c24e 100644 --- a/rslib/src/search/sqlwriter.rs +++ b/rslib/src/search/sqlwriter.rs @@ -279,9 +279,9 @@ impl SqlWriter<'_> { ), StateKind::Learning => write!( self.sql, - "c.queue in ({},{})", - CardQueue::Learn as i8, - CardQueue::DayLearn as i8 + "c.type in ({}, {})", + CardType::Learn as i8, + CardType::Relearn as i8, ), StateKind::Buried => write!( self.sql,