                   (withTime 4 0 0 0))                       ; Scheduled to run every day at 4 am
                   (-> 1 t/days)))
             (fn [time]
-              (prn "Chiming at" time))))                    ; TODO: call the correct load-data process+              (prn "Starting load data task" time)
+              (process-load-data))))
(ns restaurant-inspections-api.tasks
  (:require [clj-time.core :as t]
            [clj-time.format :as f]
            [clj-time.periodic :refer [periodic-seq]]
            [clojure-csv.core :as csv]
            [org.httpkit.client :as http]
            [chime :refer [chime-at]]
            [restaurant-inspections-api.environment :as env]
            [clojure.java.jdbc :as db]

                        :violation_57                       (str-null->int (nth % 78))
                        :violation_58                       (str-null->int (nth % 79))
                        :license_id                         (nth % 80)
                        :inspection_visit_id                (str-null->int (nth % 81))})
              (catch Exception _ (prn "Fail to load row " %)))
       (csv/parse-csv csv-file)))

