Skip to content
Snippets Groups Projects
Verified Commit 399ca19f authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix pov filter

parent 7ef741d8
No related branches found
No related tags found
No related merge requests found
...@@ -144,14 +144,14 @@ class DefaultCaosDBClientDelegate: ...@@ -144,14 +144,14 @@ class DefaultCaosDBClientDelegate:
if filter_type == "in": if filter_type == "in":
p = fil["p"] p = fil["p"]
values = fil["v"] values = fil["v"]
components = [f" {p} = " + str(val) for val in values] components = [f' "{p}" = ' + str(val) for val in values]
return " OR".join(components) return " OR".join(components)
if filter_type == "pov": if filter_type == "pov":
n = "NOT " if fil["negation"] is True else "" n = "NOT " if fil["negation"] is True else ""
p = fil["p"] p = fil["p"]
o = fil["o"] o = fil["o"]
v = fil["v"] v = fil["v"]
return f' {n}{p}{o}"{v}"' return f' {n}"{p}"{o}"{v}"'
raise NotImplementedError("_get_filter_clause(%s)", fil) raise NotImplementedError("_get_filter_clause(%s)", fil)
def _find(self, record_type, *args, **kwargs): def _find(self, record_type, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment