diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-01 21:01:17 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-01 21:01:17 +0200 |
commit | 6c37a4c00cd420e50d0cd2ad088268bcbb3d9155 (patch) | |
tree | f5c0052c1cfa1c2a9019f83f7d93d04418379d7a /module/entry-points/html.scm | |
parent | Add set-config! and get-config, along with print for debug. (diff) | |
download | calp-6c37a4c00cd420e50d0cd2ad088268bcbb3d9155.tar.gz calp-6c37a4c00cd420e50d0cd2ad088268bcbb3d9155.tar.xz |
Update remaining code to use new config scheme.
Diffstat (limited to 'module/entry-points/html.scm')
-rw-r--r-- | module/entry-points/html.scm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm index bacc8038..34ecc2dd 100644 --- a/module/entry-points/html.scm +++ b/module/entry-points/html.scm @@ -7,8 +7,6 @@ :use-module (datetime) :use-module (datetime util) :use-module (ice-9 getopt-long) - - :use-module (util config all) ) @@ -32,9 +30,8 @@ (define style (string->symbol (option-ref opts 'style "wide"))) (define-values (calendars events) - (load-calendars - calendar-files: (cond [(option-ref opts 'file #f) => list] - [else (calendar-files)]) )) + (cond [(option-ref opts 'file #f) => (compose load-calendars list)] + [else (load-calendars)])) (report-time! "Calendars loaded") @@ -49,7 +46,7 @@ ;; be a good idea to instead center it on the current week, meaning ;; that the active row is always in the center (html-chunked-main count calendars events - (previous-week-start start (week-start)) + (previous-week-start start (get-config 'week-start)) (date day: 7))] [(table) (html-table-main count calendars events start)] |