Skip to content
Snippets Groups Projects
Commit 00180023 authored by Cam Saul's avatar Cam Saul
Browse files

should_work_now

parent fe1ea19a
Branches
Tags
No related merge requests found
......@@ -347,7 +347,7 @@
(if (= total-non-null-count 0) 0
(let [url-count (-> (select korma-table
(aggregate (count :*) :count)
(where {(keyword field-name) [like "http%://_%.__%"]})) first :count)] ; This is how the old Django app worked. Didn't match URLs like
(where {(raw (format "CAST(\"%s\" AS TEXT)" (name field-name))) [like "http%://_%.__%"]})) first :count)] ; This is how the old Django app worked. Didn't match URLs like
(float (/ url-count total-non-null-count)))))) ; "www.zagat.com". Is this what we want?
(defn- check-for-urls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment