You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/05 16:02:07 UTC

svn commit: r1864448 - /comdev/reporter.apache.org/trunk/site/getjson.py

Author: humbedooh
Date: Mon Aug  5 16:02:07 2019
New Revision: 1864448

URL: http://svn.apache.org/viewvc?rev=1864448&view=rev
Log:
well that was horribly wrong, try again.

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

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1864448&r1=1864447&r2=1864448&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Mon Aug  5 16:02:07 2019
@@ -110,12 +110,10 @@ def getPMCs(uid):
     """Returns the array of LDAP committee groups to which the uid belongs. Excludes incubator"""
     groups = []
     for group in projects:
-        xgroup = group
-        if group in ldapmap:
-            xgroup = ldapmap[group]
-        if group != "incubator" and 'pmc' in projects[xgroup]:
-            if uid in projects[xgroup]['owners']:
+        if group != "incubator" and 'pmc' in projects[group]:
+            if uid in projects[group]['owners']:
                 groups.append(group)
+    groups = [pmap.get(x, x) for x in groups]
     return groups