Skip to content

Commit

Permalink
update references to carto.com
Browse files Browse the repository at this point in the history
  • Loading branch information
elesdoar committed Jul 8, 2016
1 parent 67ec5c3 commit 268a4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cartodb/cartodbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 268a4ff

Please sign in to comment.