Commit 8aa59fbf authored by Daniele Venzano's avatar Daniele Venzano

Fix lint errors

parent 3c64fb4d
Pipeline #4072 failed with stages
in 1 minute and 58 seconds
......@@ -162,12 +162,12 @@ class ExecutionCollectionAPI(RequestHandler):
('later_than_start', int),
('later_than_end', int)
for f in filters:
if f[0] in self.request.arguments:
if f[1] == str:
filt_dict[f[0]] = self.request.arguments[f[0]][0].decode('utf-8')
for filter in filters:
if filter[0] in self.request.arguments:
if filter[1] == str:
filt_dict[filter[0]] = self.request.arguments[filter[0]][0].decode('utf-8')
filt_dict[f[0]] = f[1](self.request.arguments[f[0]][0])
filt_dict[filter[0]] = filter[1](self.request.arguments[filter[0]][0])
execs = self.api_endpoint.execution_list(uid, role, **filt_dict)
......@@ -82,9 +82,9 @@ def exec_list_cmd(args):
filters = {}
for k, v in vars(args).items():
if k in filter_names:
filters[k] = v
for key, value in vars(args).items():
if key in filter_names:
filters[key] = value
data = exec_api.list(**filters)
for e in sorted(data.values(), key=lambda x: x['id']):
print('Execution {} (User: {}, ID: {}): {}'.format(e['name'], e['user_id'], e['id'], e['status']))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment