diff options
Diffstat (limited to 'hn')
-rwxr-xr-x | hn/g | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,6 +13,7 @@ (require racket/format) (require racket/string) +(require json) (require net/http-client) (require openssl) @@ -78,3 +79,8 @@ (call-with-input-file f (λ (in) (read-json in)))) (else (make-immutable-hash)))) +(define (athings:list) + (let ((f (build-path (athings:data-dir) "list"))) + (cond ((file-exists? f) (call-with-input-file f (λ (in) (read-json in)))) + (else '())))) + |