Fix a03f2b627e "selecting a field in non-interactive mode"
Writing code without coffee introduces a lot of bugs.
This commit is contained in:
parent
a03f2b627e
commit
ffe1c43300
1 changed files with 5 additions and 4 deletions
|
|
@ -353,6 +353,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
||||||
kwargs['backends'] = backends
|
kwargs['backends'] = backends
|
||||||
fields = kwargs.pop('fields', self.selected_fields)
|
fields = kwargs.pop('fields', self.selected_fields)
|
||||||
if not fields and fields != []:
|
if not fields and fields != []:
|
||||||
|
fields = self.selected_fields
|
||||||
if '$direct' in fields:
|
if '$direct' in fields:
|
||||||
fields = []
|
fields = []
|
||||||
elif '$full' in fields:
|
elif '$full' in fields:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue