community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1838209 - in /comdev/reporter.apache.org: branches/TEST_INSTALL/scripts/parsepmcs.py trunk/scripts/parsepmcs.py
Date Thu, 16 Aug 2018 16:23:49 GMT
Author: sebb
Date: Thu Aug 16 16:23:49 2018
New Revision: 1838209

URL: http://svn.apache.org/viewvc?rev=1838209&view=rev
Log:
Round to nearest 10 secs to make comparisons easier

Modified:
    comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/parsepmcs.py
    comdev/reporter.apache.org/trunk/scripts/parsepmcs.py

Modified: comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/parsepmcs.py?rev=1838209&r1=1838208&r2=1838209&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/parsepmcs.py Thu Aug 16 16:23:49
2018
@@ -128,6 +128,8 @@ def updateCommittees(stamp, group, cid):
         pmcs[group][cid] = [cname, pmcs[group][cid][1], stamp]
     
 stamp = int(time.time())
+#  Round to nearest 10 secs to make comparisons easier
+stamp = stamp - (stamp % 10)
 
 c_info = loadJson('https://whimsy.apache.org/public/committee-info.json')['committees']
 ldappeople = loadJson('https://whimsy.apache.org/public/public_ldap_people.json')['people']

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1838209&r1=1838208&r2=1838209&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Thu Aug 16 16:23:49 2018
@@ -128,6 +128,8 @@ def updateCommittees(stamp, group, cid):
         pmcs[group][cid] = [cname, pmcs[group][cid][1], stamp]
     
 stamp = int(time.time())
+#  Round to nearest 10 secs to make comparisons easier
+stamp = stamp - (stamp % 10)
 
 c_info = loadJson('https://whimsy.apache.org/public/committee-info.json')['committees']
 ldappeople = loadJson('https://whimsy.apache.org/public/public_ldap_people.json')['people']



Mime
View raw message