whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: bug: refetch when too old, not when too new
Date Thu, 15 Jun 2017 18:24:43 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 ff92427  bug: refetch when too old, not when too new
ff92427 is described below

commit ff924271aaf63894ec2f2ac13ea04ce6b3d5e292
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Jun 15 14:24:11 2017 -0400

    bug: refetch when too old, not when too new
---
 lib/whimsy/asf/podlings.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/podlings.rb b/lib/whimsy/asf/podlings.rb
index 2b306cf..1a5862b 100644
--- a/lib/whimsy/asf/podlings.rb
+++ b/lib/whimsy/asf/podlings.rb
@@ -300,7 +300,7 @@ module ASF
     def self.namesearch
       # cache JIRA response
       cache = "#{ASF::Config.get(:cache)}/pns.jira"
-      if not File.exist?(cache) or File.mtime(cache) > Time.now - 300
+      if not File.exist?(cache) or File.mtime(cache) < Time.now - 300
         query = 'https://issues.apache.org/jira/rest/api/2/search?' +
             'jql=project=PODLINGNAMESEARCH&fields=summary,resolution'
         File.write cache, Net::HTTP.get(URI(query))

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message