From af4b3d81cd1a881d0cb10eb423785ac43ffe0da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 6 Sep 2017 11:55:40 +0200 Subject: [PATCH] make happy to jshint --- lib/cartodb/models/dataview/histogram.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/models/dataview/histogram.js b/lib/cartodb/models/dataview/histogram.js index b2782e31..0c57a563 100644 --- a/lib/cartodb/models/dataview/histogram.js +++ b/lib/cartodb/models/dataview/histogram.js @@ -2,7 +2,7 @@ var _ = require('underscore'); var BaseWidget = require('./base'); var debug = require('debug')('windshaft:dataview:histogram'); -const columnCastTpl = ctx => `date_part('epoch', ${ctx.column})` +const columnCastTpl = ctx => `date_part('epoch', ${ctx.column})`; const dateIntervalQueryTpl = ctx => ` WITH @@ -185,8 +185,10 @@ const histogramQueryTpl = ctx => ` max(${ctx._column})::numeric AS max, avg(${ctx._column})::numeric AS avg, count(*) AS freq - FROM __cdb_filtered_source, __cdb_basics, __cdb_nulls, __cdb_bins ${ctx._isFloatColumn ? `, ${specialNumericValuesCTETpl()}` : ''} - GROUP BY bin, bins_number, bin_width, nulls_count, avg_val${ctx._isFloatColumn ? `, ${specialNumericValuesColumnTpl()}` : ''} + FROM __cdb_filtered_source, __cdb_basics, __cdb_nulls, __cdb_bins + ${ctx._isFloatColumn ? `, ${specialNumericValuesCTETpl()}` : ''} + GROUP BY bin, bins_number, bin_width, nulls_count, avg_val + ${ctx._isFloatColumn ? `, ${specialNumericValuesColumnTpl()}` : ''} ORDER BY bin `;