Skip to content
Snippets Groups Projects
Commit 676bc3fa authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

making strings from lists doesn't like 'None'

parent 1b808318
No related branches found
No related tags found
2 merge requests!1571catch 2.8.2.3 up with main,!1560making strings from lists doesn't like 'None'
Pipeline #13423 passed
......@@ -572,7 +572,8 @@ class WorkflowRequestRestService:
req_list = self.request.info.lookup_stale_requests(int(keep))
for r in req_list:
dir_list.append(r.results_dir)
if r.results_dir:
dir_list.append(r.results_dir)
# return list as comma seperated string
return Response(json_body={"stale_dirs": str(",".join(dir_list))})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment