Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
msm-code committed Aug 23, 2024
1 parent a0fb281 commit 83f148c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions karton/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ def convert(filters):
positive_checks.append({key: value})
regular_filter.append({"$and": positive_checks})
negative_filter.append({"$and": positive_checks + [{"$or": negative_checks}]})
return Query({
"$and": [
{"$not": {"$or": negative_filter}},
{"$or": regular_filter},
]
})
return Query(
{
"$and": [
{"$not": {"$or": negative_filter}},
{"$or": regular_filter},
]
}
)

0 comments on commit 83f148c

Please sign in to comment.