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 8143c76  Use previously fetched list
8143c76 is described below

commit 8143c7610f5202d30573e4a7068c40e1777445cf
Author: Sebb <[email protected]>
AuthorDate: Fri Jul 30 11:11:35 2021 +0100

    Use previously fetched list
    
    This was not being cached, as originally thought
---
 www/roster/main.rb | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/www/roster/main.rb b/www/roster/main.rb
index dcd5d23..93066ef 100755
--- a/www/roster/main.rb
+++ b/www/roster/main.rb
@@ -39,34 +39,18 @@ end
 
 get '/' do
   if env['REQUEST_URI'].end_with? '/'
-    stamps = []
-    stamps << Time.now.to_i
-    ASF::Person.preload(['asf-banned','loginShell']) # so can get inactive 
count
-    stamps << Time.now.to_i
-    @committers = ASF::Person.list
-    stamps << Time.now.to_i
+    @committers = ASF::Person.preload(['asf-banned','loginShell']) # so can 
get inactive count
     @committees = ASF::Committee.pmcs
-    stamps << Time.now.to_i
     @nonpmcs = ASF::Committee.nonpmcs
-    stamps << Time.now.to_i
     @members = ASF::Member.list.keys - ASF::Member.status.keys # i.e. active 
member ids
-    stamps << Time.now.to_i
     @groups = Group.list
-    stamps << Time.now.to_i
     @podlings = ASF::Podling.to_h.values
-    stamps << Time.now.to_i
     @petri = ASF::Petri.list
-    stamps << Time.now.to_i
     @otherids = ASF::Project.list.map(&:name) -
                 @committees.map(&:name) -
                 @nonpmcs.map(&:name) -
                 ASF::Podling.currentids -
                 @petri.map(&:id)
-    stamps << Time.now.to_i
-    if stamps[-1] - stamps[0] > 1
-      @stamps = stamps.each_cons(2).map { |a,b| b-a }
-      Wunderbar.warn "TIMES %s TIMES" % @stamps.join(',')
-    end
     _html :index
   else
     redirect to('/')

Reply via email to