Remove unneeded json stuff. Turns out we can serialize the data structures directly
This commit is contained in:
parent
c787cacc52
commit
703520077e
|
@ -1,6 +1,5 @@
|
|||
(ns shapey-shifty.posts.posts-io
|
||||
(:require
|
||||
[clojure.data.json :as json]
|
||||
[shapey-shifty.posts.core :as core]))
|
||||
|
||||
(def post-filename "post.json")
|
||||
|
@ -23,9 +22,6 @@
|
|||
count
|
||||
dec)))
|
||||
|
||||
(defn jsonify-post [post]
|
||||
(json/write-str post))
|
||||
|
||||
(defn write-post [post dt-path]
|
||||
(let [path (pathmap-to-path dt-path)
|
||||
increment (inc (count-posts-in-date dt-path))
|
||||
|
|
Loading…
Reference in New Issue