storage: fix repr of Or & And criterias (#55337)
This commit is contained in:
parent
3a5da7d895
commit
b7eded458b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue