From 679bcac3952ad60bded606befe8903c2b8855517 Mon Sep 17 00:00:00 2001 From: Cam Saul <cam@geotip.com> Date: Thu, 14 May 2015 16:20:58 -0700 Subject: [PATCH] code cleanup --- project.clj | 2 +- src/metabase/driver/query_processor.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 7a0851a5638..cfdf6ebb3f5 100644 --- a/project.clj +++ b/project.clj @@ -72,7 +72,7 @@ [lein-expectations "0.0.8"] ; run unit tests with 'lein expectations' [lein-instant-cheatsheet "2.1.1"] ; use awesome instant cheatsheet created by yours truly w/ 'lein instant-cheatsheet' [lein-marginalia "0.8.0"] ; generate documentation with 'lein marg' - [refactor-nrepl "1.0.5"]] ; support for advanced refactoring in Emacs/LightTable + [refactor-nrepl "1.1.0-SNAPSHOT"]] ; support for advanced refactoring in Emacs/LightTable :global-vars {*warn-on-reflection* true} ; Emit warnings on all reflection calls :jvm-opts ["-Dlogfile.path=target/log" "-Xms1024m" ; give JVM a decent heap size to start with diff --git a/src/metabase/driver/query_processor.clj b/src/metabase/driver/query_processor.clj index 6344fb5e9c6..ea3cf31e7ef 100644 --- a/src/metabase/driver/query_processor.clj +++ b/src/metabase/driver/query_processor.clj @@ -197,7 +197,7 @@ (sequential? (:cols results)) (sequential? (:rows results))]} (let [num-results (count (:rows results))] - (cond-> {:row_count (count (:rows results)) + (cond-> {:row_count num-results :status :completed :data results} (= num-results max-result-rows) (assoc :num_results_over_limit true)))) ; so the front-end can let the user know why they're being arbitarily limited -- GitLab