Skip to content
Snippets Groups Projects
Commit a146de91 authored by rha104's avatar rha104
Browse files

update return values

parent d16633a4
No related branches found
No related tags found
1 merge request!14FSHO-19: Added update batch method. And fixed format to match the post_new_batch method
Pipeline #75236 passed
......@@ -287,11 +287,13 @@ class SetraClient(object):
data=batchdata.json(),
headers=headers,
return_response=True)
if response.status_code in (409, 202):
if response.status_code in (204, 202):
return 'OK'
elif response.status_code is 409:
return 'batch_found_but_cannot_be_updated'
else:
response.raise_for_status()
return response
return response
def get_batch_complete(self, batch_id: str):
"""
......
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