Skip to content

Commit

Permalink
fix dashboard single date filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKraev authored and camsaul committed Apr 3, 2019
1 parent 1dcd65a commit dc3404d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
{:start date, :end date})
:filter (fn [{:keys [date]} field-id-clause]
(let [iso8601date (day->iso8601 date)]
[:= [:datetime-field field-id-clause :day] :between]))}
[:= [:datetime-field field-id-clause :day] iso8601date]))}
;; day range
{:parser (regex->parser #"([0-9-T:]+)~([0-9-T:]+)" [:date-1 :date-2])
:range (fn [{:keys [date-1 date-2]} _]
Expand Down

0 comments on commit dc3404d

Please sign in to comment.