From 561a83a3ff8060078fbc458ce20312ed7bbd4df7 Mon Sep 17 00:00:00 2001 From: Juan Pardo Date: Thu, 5 Oct 2023 10:41:46 +0200 Subject: [PATCH] fixup! fixup! fixup! Added import job documentation --- croud/clusters/commands.py | 1 - croud/printer.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/croud/clusters/commands.py b/croud/clusters/commands.py index c76ef335..64ff26ed 100644 --- a/croud/clusters/commands.py +++ b/croud/clusters/commands.py @@ -308,7 +308,6 @@ def import_jobs_list(args: Namespace) -> None: keys=["id", "cluster_id", "status", "type", "destination"], output_fmt=get_output_format(args), transforms={ - "source": lambda field: field.get(field.get("type")), "destination": lambda field: field.get("table"), }, ) diff --git a/croud/printer.py b/croud/printer.py index 1976ecf2..52bd3901 100644 --- a/croud/printer.py +++ b/croud/printer.py @@ -158,10 +158,6 @@ def format_rows(self, rows: Union[List[JsonDict], JsonDict]) -> str: # | bar | 2 | # +-----+-----+ - # all_keys = [row.keys() for row in rows] - # all_keys = list(itertools.chain(*all_keys)) - # all_keys_set = set(all_keys) - # all_keys = [x for x in all_keys if x not in all_keys_set] all_keys = list(map(str, rows[0].keys())) if len(rows) else self.keys if all_keys: for row in rows: @@ -169,7 +165,6 @@ def format_rows(self, rows: Union[List[JsonDict], JsonDict]) -> str: if key not in all_keys: all_keys.append(key) - # headers = set(itertools.chain(*all_keys)) if len(rows) else self.keys headers = all_keys if len(rows) else self.keys if headers is None: