Просмотр исходного кода

fix missing (cond) clause for showing all closed (accepted and rejected) proposals. fixes #14

George C. Privon 4 месяцев назад
Родитель
Сommit
69b2629e2c
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 4 1
      proposal_database.rkt

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 
 - Annotate example configuration file with guidance.
 - Bugfix for multi-counting open calls if more than one different telescope was applied for within a given call (e.g., VLA and VLBA were applied for via separation proposals in a single NRAO call).
+- Fix `--list-closed` bug that prevented successful printing of all closed proposals.
 
 ### v0.3.0 (20 April 2025)
 

+ 4 - 1
proposal_database.rkt

@@ -270,7 +270,10 @@ resultdate TEXT DEFAULT '')")
   (display (string-append (number->string (length props))
                           (cond [issub " pending "]
                                 [isaccept " accepted "]
-                                [isrej " rejected "])
+                                [isrej " rejected "]
+                                [(and (not issub)
+                                      (not isaccept)
+                                      (not isrej)) " closed "])
                           (proposal-plurals (length props))
                           " found."))
   (newline)