storage: fix repr of Or & And criterias (#55337)

This commit is contained in:
Frédéric Péters 2021-07-02 10:37:49 +02:00
parent 3a5da7d895
commit b7eded458b
1 changed files with 6 additions and 0 deletions

View File

@ -229,6 +229,9 @@ class Or(Criteria):
func = combine_callables(func, element.build_lambda())
return func
def __repr__(self):
return '<%s (%r)>' % (self.__class__.__name__, self.criterias)
class And(Criteria):
def __init__(self, criterias, **kwargs):
@ -244,6 +247,9 @@ class And(Criteria):
func = combine_callables(func, element.build_lambda())
return func
def __repr__(self):
return '<%s (%r)>' % (self.__class__.__name__, self.criterias)
class ILike(Criteria):
def build_lambda(self):