We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d34d0 commit 1f877e7Copy full SHA for 1f877e7
memsource_cli/job/v2/job.py
@@ -72,6 +72,7 @@ def take_action(self, parsed_args):
72
response = api.list_parts_v2(token=self.app.client.configuration.token,
73
**args)
74
75
+ column_pages = ['total_elements', 'total_pages', 'page_size', 'page_number', 'number_of_elements']
76
column_headers = ['uid', 'status', 'providers',
77
'target_lang', 'workflow_step', 'filename',
78
'date_due', 'date_created', 'imported', 'continuous']
@@ -81,6 +82,13 @@ def take_action(self, parsed_args):
81
82
output = response.to_dict()
83
content = output['content']
84
85
+ meta = [(output['total_elements'], output['total_pages'], output['page_size'], output['page_number'],
86
+ output['number_of_elements'])]
87
+
88
+ for column in parsed_args.columns:
89
+ if column in column_pages:
90
+ return (column_pages), (meta)
91
92
for i in range(0, len(content)):
93
for j in column_headers:
94
if isinstance(content[i][j], dict):
0 commit comments