switch some existing code to use SearchTerm(negated=...)
This commit is contained in:
parent
397cff9194
commit
5c69bccfcf
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user