community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1696538 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Wed, 19 Aug 2015 08:54:17 GMT
Author: humbedooh
Date: Wed Aug 19 08:54:17 2015
New Revision: 1696538

URL: http://svn.apache.org/r1696538
Log:
trying a new fix for empire-db

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=1696538&r1=1696537&r2=1696538&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Aug 19 08:54:17 2015
@@ -19,6 +19,10 @@ pmap = {
     'empire': 'empire-db'
 }
 
+mboxmap = {
+    'empire-db': 'empire'
+}
+
 ldapmap = {
     'webservices': 'ws'
 }
@@ -234,6 +238,9 @@ if m:
             tlp = entry.split("-")[0]
             if tlp in pmap:
                 tlp = pmap[tlp]
+            # fix for empire-db?
+            if re.match("^empire-db.+", entry):
+                tlp = "empire-db"
             if tlp in groups:
                 emails[tlp] = emails[tlp] if tlp in emails else {}
                 emails[tlp][entry] = mld[entry]



Mime
View raw message