aboutsummaryrefslogtreecommitdiff
path: root/module/calp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-08-28 22:04:24 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-09-18 22:46:18 +0200
commitb7cee3dba696e30eb737568c19decfb1b659beb3 (patch)
treef3d2a408b24c1dfea58b22625a947c66ba20888d /module/calp
parentMinor cleanup in TS files. (diff)
downloadcalp-b7cee3dba696e30eb737568c19decfb1b659beb3.tar.gz
calp-b7cee3dba696e30eb737568c19decfb1b659beb3.tar.xz
Rewrote make-routes to use define-syntax.
This is the first step into adding extra functionallity, since I now want have to worry about how namespace pollution works.
Diffstat (limited to 'module/calp')
-rw-r--r--module/calp/repl.scm1
-rw-r--r--module/calp/server/routes.scm3
2 files changed, 2 insertions, 2 deletions
diff --git a/module/calp/repl.scm b/module/calp/repl.scm
index 7beee560..aaa1061c 100644
--- a/module/calp/repl.scm
+++ b/module/calp/repl.scm
@@ -5,6 +5,7 @@
(define-module (calp repl)
:use-module (system repl server)
:use-module (ice-9 regex)
+ :use-module (ice-9 format)
:use-module ((calp util hooks) :select (shutdown-hook))
:use-module ((hnh util exceptions) :select (warning))
:use-module (calp translation)
diff --git a/module/calp/server/routes.scm b/module/calp/server/routes.scm
index ed2c1b2d..6701d8b4 100644
--- a/module/calp/server/routes.scm
+++ b/module/calp/server/routes.scm
@@ -163,8 +163,7 @@
next-start: (lambda (d) (date+ d (date day: 7)))
prev-start: (lambda (d) (date- d (date day: 7)))
render-calendar: (@ (calp html view calendar week) render-calendar)
- intervaltype: 'week
- )))))))
+ intervaltype: 'week)))))))
(GET "/month/:start-date.html" (start-date html)
(let ((start-date (start-of-month (parse-iso-date start-date))))