community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1664681 - /comdev/reporter.apache.org/site/getjson.py
Date Fri, 06 Mar 2015 17:37:31 GMT
Author: humbedooh
Date: Fri Mar  6 17:37:31 2015
New Revision: 1664681

URL: http://svn.apache.org/r1664681
Log:
We now have a cron job refreshing JIRA data every evening, so let's only fetch JIRA live if
the cron job is not working. We don't need new data that often anyway.

Modified:
    comdev/reporter.apache.org/site/getjson.py

Modified: comdev/reporter.apache.org/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/getjson.py?rev=1664681&r1=1664680&r2=1664681&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/getjson.py (original)
+++ comdev/reporter.apache.org/site/getjson.py Fri Mar  6 17:37:31 2015
@@ -83,7 +83,7 @@ def getJIRAS(project):
     try:
         st=os.stat("/var/www/reporter.apache.org/data/JIRA/%s.json" % project)
         mtime=st.st_mtime
-        if mtime >= (time.time() - 86400):
+        if mtime >= (time.time() - (2*86400)):
             refresh = False
             with open("/var/www/reporter.apache.org/data/JIRA/%s.json" % project, "r") as
f:
                 x = json.loads(f.read())



Mime
View raw message