diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/grfn/bbbg/src/bbbg/handlers/attendees.clj | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj index 00a8a5908046..ccff28c00151 100644 --- a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj +++ b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj @@ -21,9 +21,11 @@ (db.attendee/search q) {:select [:attendee.*] :from [:attendee]}) event_id (db.attendee/for-event event_id) - (some? attended) (merge-where [:= :attended (case attended - "true" true - "false" false)])))] + (some? attended) + (merge-where + (case attended + "true" :attended + "false" [:or [:= :attended nil] [:not :attended]]))))] (-> {:results results} json/generate-string response |