(lambda (garden-file)
(let ((g (with-input-from-file garden-file read)))
(update-garden! g)
- (with-output-to-file garden-file (lambda () write g))
+ (with-output-to-file garden-file (lambda () (write g)))
(let ((fields (list (garden-prop 'user g)
(seconds->string (garden-prop 'created g))
(garden-stage g))))
(serve-query "User name")
(let* ((username (symbol->string (caar query)))
(hash (string->sha1sum (conc username
- (number->string (pseudo-random-integer 10000))))))
+ (number->string (pseudo-random-integer 1000000))))))
(with-output-to-file (conc "accounts/" hash)
(lambda ()
(write (make-garden username))))