Skip to content
Snippets Groups Projects
Verified Commit bb83afbc authored by Varac's avatar Varac
Browse files

Use format() to concanate str and int

parent 258b4512
Branches
Tags
No related merge requests found
......@@ -105,13 +105,13 @@ def delete_droplet(id: int):
def get_domain_record(domain: str, id: int):
"""Get details for given domain record."""
response = request_api('domains/' + domain + '/records/' + str(id))
response = request_api('domains/{0}/records/{1}'.format(domain, id))
return response['domain_record']
def get_domain_records(domain: str):
"""Get domain records for given domain."""
response = request_api('domains/' + domain + '/records')
response = request_api('domains/{0}/records'.format(domain))
return response['domain_records']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment