needed str replacements
This commit is contained in:
parent
c09064625c
commit
436d914c0a
@ -188,7 +188,7 @@ TimePlayer.prototype.get_time_data = function (tile, coord, zoom) {
|
|||||||
" FROM " +
|
" FROM " +
|
||||||
" hgrid, {0} i ".format(this.table) +
|
" hgrid, {0} i ".format(this.table) +
|
||||||
" WHERE " +
|
" 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) " +
|
" AND ST_Intersects(i.the_geom_webmercator, hgrid.cell) " +
|
||||||
" GROUP BY " +
|
" GROUP BY " +
|
||||||
" hgrid.cell, " +
|
" hgrid.cell, " +
|
||||||
@ -212,7 +212,7 @@ TimePlayer.prototype.get_time_data = function (tile, coord, zoom) {
|
|||||||
" FROM " +
|
" FROM " +
|
||||||
" hgrid, {0} i ".format(this.table) +
|
" hgrid, {0} i ".format(this.table) +
|
||||||
" WHERE " +
|
" 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) " +
|
" AND ST_Intersects(i.the_geom_webmercator, hgrid.cell) " +
|
||||||
" GROUP BY " +
|
" GROUP BY " +
|
||||||
" hgrid.cell, floor(({0} - {1})/{2})".format(column_conv, this.MIN_DATE, this.step) +
|
" hgrid.cell, floor(({0} - {1})/{2})".format(column_conv, this.MIN_DATE, this.step) +
|
||||||
|
Loading…
Reference in New Issue
Block a user