Move condition from BCall to Repl
This commit is contained in:
parent
c97f33633a
commit
6b0930ffc5
2 changed files with 3 additions and 2 deletions
|
|
@ -1109,6 +1109,9 @@ class ReplApplication(Cmd, ConsoleApplication):
|
|||
|
||||
def format(self, result, alias=None):
|
||||
fields = self.selected_fields
|
||||
# Do not format objects if they not respect conditions
|
||||
if self.condition and not self.condition.is_valid(result):
|
||||
return
|
||||
if '$direct' in fields or '$full' in fields:
|
||||
fields = None
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue