community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728311 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
Date Wed, 03 Feb 2016 13:43:09 GMT
Author: sebb
Date: Wed Feb  3 13:43:09 2016
New Revision: 1728311

URL: http://svn.apache.org/viewvc?rev=1728311&view=rev
Log:
Simplify

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=1728311&r1=1728310&r2=1728311&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Wed Feb  3 13:43:09 2016
@@ -58,7 +58,8 @@ with open(__HOME + "projects.json", "r",
 newgroups = []
 newpmcs = []
 
-def updateProjects(stamp, group, cid, cname):
+def updateProjects(stamp, group, cid):
+    cname = ldappeople[cid]['name']
     now = stamp
     if not group in projects:
         print("New unx group %s" % group)
@@ -73,7 +74,8 @@ def updateProjects(stamp, group, cid, cn
         # update the entry last seen time (and the public name, which may have changed)
         projects[group][cid] = [cname, projects[group][cid][1], stamp]
 
-def updateCommittees(stamp, group, cid, cname):
+def updateCommittees(stamp, group, cid):
+    cname = ldappeople[cid]['name']
     now = stamp
     if not group in pmcs: # a new project
         print("New pmc group %s" % group)
@@ -98,11 +100,11 @@ ldapcttees = loadJson('https://whimsy.ap
 for group in ldapcttees:
     if group in c_info:
         for cid in ldapcttees[group]['roster']:
-            updateCommittees(stamp, group, cid, ldappeople[cid]['name'])
+            updateCommittees(stamp, group, cid)
 for group in ldapgroups:
     if group != 'committers' and group in c_info:
         for cid in ldapgroups[group]['roster']:
-            updateProjects(stamp, group, cid, ldappeople[cid]['name'])
+            updateProjects(stamp, group, cid)
 
 
 """



Mime
View raw message