From 436d914c0a611901489596f0c0d830317cb80c8a Mon Sep 17 00:00:00 2001 From: Andrew Hill Date: Wed, 24 Apr 2013 11:06:50 -0400 Subject: [PATCH] needed str replacements --- src/grid_layer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid_layer.js b/src/grid_layer.js index 007cf6b..2c67d8f 100644 --- a/src/grid_layer.js +++ b/src/grid_layer.js @@ -188,7 +188,7 @@ TimePlayer.prototype.get_time_data = function (tile, coord, zoom) { " FROM " + " hgrid, {0} i ".format(this.table) + " WHERE " + - " i.the_geom_webmercator && CDB_XYZ_Extent({0}, {1}, {2}) " + + " i.the_geom_webmercator && CDB_XYZ_Extent({0}, {1}, {2}) ".format(coord.x, coord.y, zoom) + " AND ST_Intersects(i.the_geom_webmercator, hgrid.cell) " + " GROUP BY " + " hgrid.cell, " + @@ -212,7 +212,7 @@ TimePlayer.prototype.get_time_data = function (tile, coord, zoom) { " FROM " + " hgrid, {0} i ".format(this.table) + " WHERE " + - " i.the_geom_webmercator && CDB_XYZ_Extent({0}, {1}, {2}) " + + " i.the_geom_webmercator && CDB_XYZ_Extent({0}, {1}, {2}) ".format(coord.x, coord.y, zoom) + " AND ST_Intersects(i.the_geom_webmercator, hgrid.cell) " + " GROUP BY " + " hgrid.cell, floor(({0} - {1})/{2})".format(column_conv, this.MIN_DATE, this.step) +