From 268a4ffda3fcaba5a1b9d50996ba6ec7b9a8a251 Mon Sep 17 00:00:00 2001 From: "Michael A. Salgado" Date: Fri, 8 Jul 2016 15:56:53 -0500 Subject: [PATCH] update references to carto.com --- cartodb/cartodbapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cartodb/cartodbapi.py b/cartodb/cartodbapi.py index 1e50736..c3987f0 100644 --- a/cartodb/cartodbapi.py +++ b/cartodb/cartodbapi.py @@ -91,7 +91,7 @@ def getUserTables(self, page=1, per_page=20, shared='yes', returnDict=True): def getDataFromTable(self, sql, returnDict=True): self.returnDict = returnDict - apiUrl = 'http://{}.cartodb.com/api/v2/sql?api_key={}&format=GeoJSON&q={}'.format(self.cartodbUser, self.apiKey, sql) + apiUrl = 'http://{}.{}/api/v2/sql?api_key={}&format=GeoJSON&q={}'.format(self.cartodbUser, self.hostname, self.apiKey, sql) url = QUrl(apiUrl) request = self._getRequest(url) @@ -103,7 +103,7 @@ def getDataFromTable(self, sql, returnDict=True): loop.exec_() def download(self, sql): - apiUrl = 'http://{}.cartodb.com/api/v2/sql?api_key={}&format=spatialite&q={}'.format(self.cartodbUser, self.apiKey, sql) + apiUrl = 'http://{}.{}/api/v2/sql?api_key={}&format=spatialite&q={}'.format(self.cartodbUser, self.hostname, self.apiKey, sql) url = QUrl(apiUrl) request = self._getRequest(url)