|
@@ -35,7 +35,7 @@ module Blazer
|
|
|
query = data_source.smart_variables[var]
|
|
|
if query
|
|
|
rows, error, cached_at = data_source.run_statement(query)
|
|
|
- (@smart_vars[var] ||= []).concat rows.map { |v| v.values.reverse }
|
|
|
+ ((@smart_vars[var] ||= []).concat(rows.map { |v| v.values.reverse })).uniq!
|
|
|
@sql_errors << error if error
|
|
|
end
|
|
|
end
|