Remove unneeded json stuff. Turns out we can serialize the data structures directly

This commit is contained in:
Charlotte Allen 2020-01-27 18:57:49 -08:00
parent c787cacc52
commit 703520077e
No known key found for this signature in database
GPG Key ID: 3A64C3A6C69860B0
1 changed files with 0 additions and 4 deletions

View File

@ -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))