Skip to content
Snippets Groups Projects
Commit 06c626ad authored by Petr Kalashnikov's avatar Petr Kalashnikov
Browse files

Fix endpoint linjk forming for batch_complete

parent 3cfed2fc
No related branches found
No related tags found
1 merge request!7OM46, del 1: Support batch_complete endpoint from setra
Pipeline #57288 failed
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -92,11 +92,8 @@ class SetraEndpoints:
"""
URL for Batch endpoint
"""
if batch_id is None:
return urllib.parse.urljoin(self.baseurl, self.batch_complete_url)
else:
return urllib.parse.urljoin(self.baseurl,
'/'.join((self.batch_complete_url, batch_id)))
return urllib.parse.urljoin(self.baseurl,
'/'.join((self.batch_complete_url, batch_id)))
class SetraClient(object):
......
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