Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a19f053

Browse files
rename _OPERATORS property
1 parent 0353f3c commit a19f053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎simple_query_builder/querybuilder.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
class QueryBuilder:
15-
_OPERATORS: list = [
15+
_COND_OPERATORS: list = [
1616
"=",
1717
">",
1818
"<",
@@ -308,7 +308,7 @@ def _prepare_conditions(self, where: Union[str, list]) -> dict:
308308
field = self._prepare_field(cond[0])
309309
operator = cond[1].upper()
310310
value = cond[2]
311-
if operator in self._OPERATORS:
311+
if operator in self._COND_OPERATORS:
312312
if operator == "IN" and (
313313
isinstance(value, list) or isinstance(value, tuple)
314314
):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /