diff options
Diffstat (limited to 'module/entry-points/html.scm')
-rw-r--r-- | module/entry-points/html.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm index 82f972ae..16306031 100644 --- a/module/entry-points/html.scm +++ b/module/entry-points/html.scm @@ -3,8 +3,8 @@ :use-module (output html) :use-module (util) :use-module (vcomponent) - :use-module (srfi srfi-19) - :use-module (srfi srfi-19 util) + :use-module (srfi srfi-19 alt) + :use-module (srfi srfi-19 alt util) :use-module (ice-9 getopt-long) :use-module (parameters) @@ -22,13 +22,15 @@ (define start (cond [(option-ref opts 'from #f) => parse-freeform-date] [else (start-of-month (current-date))])) (define end (cond [(option-ref opts 'to #f) => parse-freeform-date] - [else (normalize-date* (set (date-month start) = (+ 1)))])) + [else (date+ start (date month: 1)) ])) (define-values (calendars events) (load-calendars calendar-files: (cond [(option-ref opts 'file #f) => list] [else (calendar-files)]) )) + ((@ (srfi srfi-41) stream->list) events) + (if (option-ref opts 'chunked #f) (html-chunked-main calendars events start) (html-generate calendars events start end))) |