diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index e4bc605dc..8f85c7ddf 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -197,7 +197,7 @@ class CustomStudy(QDialog): dyn["resched"] = True elif type == TYPE_REVIEW: terms = self.mw.col.build_search_string( - SearchTerm(card_state=SearchTerm.CARD_STATE_NEW), negate=True + SearchTerm(negated=SearchTerm(card_state=SearchTerm.CARD_STATE_NEW)) ) ord = DYN_RANDOM dyn["resched"] = True diff --git a/qt/aqt/sidebar.py b/qt/aqt/sidebar.py index e934ce79f..f29e14def 100644 --- a/qt/aqt/sidebar.py +++ b/qt/aqt/sidebar.py @@ -812,9 +812,7 @@ class SidebarTreeView(QTreeView): collapse_key=Config.Bool.COLLAPSE_TAGS, type=SidebarItemType.TAG_ROOT, ) - root.on_click = self._filter_func( - self.col.build_search_string(SearchTerm(tag="none"), negate=True) - ) + root.on_click = self._filter_func(SearchTerm(negated=SearchTerm(tag="none"))) root.add_simple( name=tr(TR.BROWSING_SIDEBAR_UNTAGGED), icon=icon,