Skip to content
Snippets Groups Projects
Commit 3bb85065 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

little bit of tidy up.

parent 5fde99d6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,6 @@
;; simple job which looks up all databases and runs a sync on them
(jobs/defjob SendPulses
[ctx]
;; determine what time it is right now (hour-of-day & day-of-week) in local timezone
(send-pulses))
(defn task-init []
......@@ -96,8 +95,9 @@
(= :slack channel_type) (send-pulse-slack pulse results details))))))
(defn send-pulses
""
"Send any `Pulses` which are scheduled to run in the current day/hour."
[]
;; determine what time it is right now (hour-of-day & day-of-week) in local timezone
(let [now (time/to-time-zone (time/now) (time/time-zone-for-id (or (setting/get :report_timezone) "UTC")))
curr-hour (time/hour now)
curr-weekday (:id (get pulse-channel/days-of-week (time/day-of-week now)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment