community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1791127 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
Date Wed, 12 Apr 2017 14:46:58 GMT
Author: sebb
Date: Wed Apr 12 14:46:58 2017
New Revision: 1791127

URL: http://svn.apache.org/viewvc?rev=1791127&view=rev
Log:
COMDEV-218 Reporter/parsepmcs should not be using public_ldap_committees now

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

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1791127&r1=1791126&r2=1791127&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Wed Apr 12 14:46:58 2017
@@ -7,7 +7,6 @@ if sys.hexversion < 0x030000F0:
    https://whimsy.apache.org/public/committee-info.json
    https://whimsy.apache.org/public/public_ldap_people.json
    https://whimsy.apache.org/public/public_ldap_groups.json
-   https://whimsy.apache.org/public/public_ldap_committees.json
    and updates:
    data/pmcs.json - members of pmcs
    data/projects.json - committers of projects
@@ -121,12 +120,12 @@ stamp = int(time.time())
 c_info = loadJson('https://whimsy.apache.org/public/committee-info.json')['committees']
 ldappeople = loadJson('https://whimsy.apache.org/public/public_ldap_people.json')['people']
 ldapgroups = loadJson('https://whimsy.apache.org/public/public_ldap_groups.json')['groups']
-ldapcttees = loadJson('https://whimsy.apache.org/public/public_ldap_committees.json')['committees']
 
-for group in ldapcttees:
-    if group in c_info:
-        for cid in ldapcttees[group]['roster']:
+for group in c_info:
+    if c_info[group]['pmc']:
+        for cid in c_info[group]['roster']:
             updateCommittees(stamp, group, cid)
+
 for group in ldapgroups:
     if group != 'committers' and group in c_info:
         for cid in ldapgroups[group]['roster']:



Mime
View raw message