decomp method added to decompress of all notes

This commit is contained in:
Christian Müller
2015-09-13 13:40:13 +02:00
parent 911eb9af47
commit 1e8f74a31c
+8
View File
@@ -131,6 +131,14 @@
(redis :sadd (str noteID :urls) url)
url))))
(defn decomp []
(let [ids (map first (partition 2 (redis :hgetall :note)))]
(doseq [id ids]
(do
(println id)
(redis :hset :note id (get-note id))
))))
(defn gc [password dry]
(println (get-setting :admin-pw))
(when (= password (get-setting :admin-pw))