oops
parent
483b8adb85
commit
5ea07fd3ee
|
@ -31,16 +31,16 @@
|
||||||
(defn sort-user-list [usernames]
|
(defn sort-user-list [usernames]
|
||||||
(apply sorted [usernames] {"key" modify-time}))
|
(apply sorted [usernames] {"key" modify-time}))
|
||||||
|
|
||||||
(defn users [] (listdir "/home"))
|
(defn user-generator [] (-> (listdir "/home")
|
||||||
|
(filter (fn [f] (and (not (= f "ubuntu")) (not (= f "poetry")))))))
|
||||||
|
|
||||||
(def user-list (->> (users)
|
(def user-list (->> (user-generator)
|
||||||
(filter (fn [f] (and (not (= f "ubuntu")) (not (= f "poetry")))))
|
|
||||||
sort-user-list
|
sort-user-list
|
||||||
reversed
|
reversed
|
||||||
(map dir->html)
|
(map dir->html)
|
||||||
(.join "\n")))
|
(.join "\n")))
|
||||||
|
|
||||||
(print (.format "our esteemed users ({})<br> <sub>generated at {}</sub><br><ul>{}</ul>"
|
(print (.format "our esteemed users ({})<br> <sub>generated at {}</sub><br><ul>{}</ul>"
|
||||||
(len (users))
|
(len (user-generator))
|
||||||
timestamp
|
timestamp
|
||||||
user-list))
|
user-list))
|
||||||
|
|
Reference in New Issue