Fix member-record tests.

This commit is contained in:
Dominik Pantůček 2023-03-29 19:15:24 +02:00
parent c35d6585cc
commit 817a1c8422
2 changed files with 14 additions and 11 deletions

View file

@ -59,8 +59,9 @@
(define (member-calendar mr . args)
(let ((last-month (if (null? args)
(*current-month*)
(car args))))
(let loop ((cm (period-since (member-record-info mr 'member)))
(car args)))
(first-month (period-since (car (member-record-info mr 'member)))))
(let loop ((cm first-month)
(cal '()))
(if (month>? cm last-month)
(reverse cal)