Skip to content

Commit

Permalink
Fixed AF space
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesArchitect authored Dec 26, 2020
1 parent bbd1197 commit 9ab1e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ type QueryBuilder struct{}
func (qb *QueryBuilder) MetricQuery(queryData *simplejson.Json, timeRangeFrom string, timeRangeTo string) string {
allowFiltering := ""
if queryData.Get("filtering").MustBool() {
allowFiltering = "ALLOW FILTERING"
allowFiltering = " ALLOW FILTERING"
}

preparedQuery := fmt.Sprintf(
"SELECT %s, CAST(%s as double) FROM %s.%s WHERE %s = %s AND %s >= '%s' AND %s <= '%s' %s",
"SELECT %s, CAST(%s as double) FROM %s.%s WHERE %s = %s AND %s >= '%s' AND %s <= '%s'%s",
queryData.Get("columnTime").MustString(),
queryData.Get("columnValue").MustString(),
queryData.Get("keyspace").MustString(),
Expand Down

0 comments on commit 9ab1e6f

Please sign in to comment.