mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Fixes inversion in tagged mail searching
This commit is contained in:
parent
df203311fe
commit
29d8c4e08d
@ -168,7 +168,7 @@ class TagMailAction(BaseMailAction):
|
|||||||
if self.supports_gmail_labels:
|
if self.supports_gmail_labels:
|
||||||
return AND(NOT(gmail_label=self.keyword), no_keyword=self.keyword)
|
return AND(NOT(gmail_label=self.keyword), no_keyword=self.keyword)
|
||||||
else:
|
else:
|
||||||
return NOT(no_keyword=self.keyword)
|
return {"no_keyword": self.keyword}
|
||||||
else: # pragma: nocover
|
else: # pragma: nocover
|
||||||
raise ValueError("This should never happen.")
|
raise ValueError("This should never happen.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user