You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/15 16:31:51 UTC

[whimsy] branch master updated: Allow for missing epoch

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 54ea25f  Allow for missing epoch
54ea25f is described below

commit 54ea25f427cbcb6b8cb2bd68ab5c92b11ddb96e3
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jul 15 17:31:41 2020 +0100

    Allow for missing epoch
---
 lib/whimsy/asf/documents.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/documents.rb b/lib/whimsy/asf/documents.rb
index a5e8ac2..092fd1e 100644
--- a/lib/whimsy/asf/documents.rb
+++ b/lib/whimsy/asf/documents.rb
@@ -119,7 +119,8 @@ module ASF
       id = person.id
       files = self.listnames(getDate).find_all do |file|
         if getDate
-          stem = file[1].split('.')[0] # directories don't have a trailing /
+          # allow for missing epoch
+          stem = [file].pop.split('.')[0] # directories don't have a trailing /
         else
           stem = file.split('.')[0] # directories don't have a trailing /
         end