1. Miki Tebeka
  2. clj2010

Commits

Miki Tebeka  committed e127e63

Save in charts

  • Participants
  • Parent commits 1824831
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
 lib
 classes
 logs
+charts

File src/clj2010.clj

View file
 
 (defn run-job [job records]
   (let [chart (gen-chart job records)]
-    (save chart (str (:filename job) ".png"))))
+    (save chart (str "charts/" (:filename job) ".png"))))
 
 (defn time-fmt [fmt]
   (fn [dt]
     :title "Lines/Month"
     :x-label "Month"
     :y-label "Lines"
-    :filename "numlines"
+    :filename "lines"
     :x-format (time-fmt "MMM")})
 
 (def numusers {