This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 1e334150 Docco [skip ci]
1e334150 is described below
commit 1e334150c22be0d9a59d4a5b60b7e666383d10f3
Author: Sebb <[email protected]>
AuthorDate: Fri Aug 2 22:39:44 2024 +0100
Docco [skip ci]
---
www/secretary/workbench/server.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/secretary/workbench/server.rb
b/www/secretary/workbench/server.rb
index d295917c..b2635ac3 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -64,7 +64,7 @@ get '/' do
archives = Dir[File.join(ARCHIVE, '*.yml')].select {|name| name =~
%r{/\d{6}\.yml$}}
@mbox = archives.empty? ? nil : File.basename(archives.max, '.yml')
if @mbox
- @mbox = [Date.today.strftime('%Y%m'), @mbox].min
+ @mbox = [Date.today.strftime('%Y%m'), @mbox].min # Exclude future-dated
entries
@messages = Mailbox.new(@mbox).client_headers.select do |message|
message[:status] != :deleted
end