decomp method added to decompress of all notes
This commit is contained in:
@@ -131,6 +131,14 @@
|
|||||||
(redis :sadd (str noteID :urls) url)
|
(redis :sadd (str noteID :urls) url)
|
||||||
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]
|
(defn gc [password dry]
|
||||||
(println (get-setting :admin-pw))
|
(println (get-setting :admin-pw))
|
||||||
(when (= password (get-setting :admin-pw))
|
(when (= password (get-setting :admin-pw))
|
||||||
|
|||||||
Reference in New Issue
Block a user