GNU bug report logs -
#40157
[PATCH] hydra: Display the IRC logs in reverse chronological order.
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Fri, 20 Mar 2020 21:45:01 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I think that people usually want to read the latest logs, which
currently requires a lot of scrolling.
* hydra/goggles.scm (index): Reverse the list of log files.
---
hydra/goggles.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hydra/goggles.scm b/hydra/goggles.scm
index 169b3c3..884c8df 100644
--- a/hydra/goggles.scm
+++ b/hydra/goggles.scm
@@ -181,9 +181,9 @@ freenode." channel))
(ul
,@(map (lambda (file)
`(li (a (@ (href ,(string-append "/" channel "/" file))) ,file)))
- (or (scandir (string-append %log-root "/#" channel "/")
- (lambda (name)
- (not (member name '("." ".." "index.html")))))
+ (or (reverse (scandir (string-append %log-root "/#" channel "/")
+ (lambda (name)
+ (not (member name '("." ".." "index.html"))))))
'()))))))
(define %controller
--
2.25.1
This bug report was last modified 5 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.