Skip to content

Commit

Permalink
FS: Add active as a column when view=all is specified
Browse files Browse the repository at this point in the history
Signed-off-by: LucaNicosia <[email protected]>
  • Loading branch information
LucaNicosia authored and claudiolor committed Jan 10, 2023
1 parent 9de37cd commit 241a7ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions suzieq/engines/pandas/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def get(self, **kwargs):
columns = kwargs.get('columns', ['default'])
fields = self.schema.get_display_fields(columns)

self._add_active_to_fields(
kwargs.get('view', self.iobj.view), fields, [])

df = super().get(**kwargs)

if df.empty:
Expand Down

0 comments on commit 241a7ec

Please sign in to comment.