From 389029a6c8c20cd125333c81f758ffb718169ab9 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Mon, 29 Apr 2024 18:28:56 +0100 Subject: [PATCH] #188 - url now uses strings - as it should! --- CloudFlare/cloudflare.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CloudFlare/cloudflare.py b/CloudFlare/cloudflare.py index 643305c..03600dc 100644 --- a/CloudFlare/cloudflare.py +++ b/CloudFlare/cloudflare.py @@ -289,14 +289,14 @@ def _call_network(self, method, headers, parts, identifiers, params, data_str, d if identifiers[1] is None: url = (self.base_url + '/' + parts[0] + '/' - + identifiers[0] + '/' + + str(identifiers[0]) + '/' + parts[1]) else: url = (self.base_url + '/' + parts[0] + '/' - + identifiers[0] + '/' + + str(identifiers[0]) + '/' + parts[1] + '/' - + identifiers[1]) + + str(identifiers[1])) else: if identifiers[0] is None: url = (self.base_url + '/' @@ -304,16 +304,16 @@ def _call_network(self, method, headers, parts, identifiers, params, data_str, d else: url = (self.base_url + '/' + parts[0] + '/' - + identifiers[0]) + + str(identifiers[0])) if len(parts) > 2 and parts[2]: url += '/' + parts[2] if identifiers[2]: - url += '/' + identifiers[2] + url += '/' + str(identifiers[2]) if len(parts) > 3 and parts[3]: url += '/' + parts[3] if identifiers[3]: - url += '/' + identifiers[3] + url += '/' + str(identifiers[3]) if len(parts) > 4 and parts[4]: url += '/' + parts[4]