community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1696542 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Wed, 19 Aug 2015 09:01:46 GMT
Author: humbedooh
Date: Wed Aug 19 09:01:45 2015
New Revision: 1696542

URL: http://svn.apache.org/r1696542
Log:
correct fix this time, I hope

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=1696542&r1=1696541&r2=1696542&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Aug 19 09:01:45 2015
@@ -236,16 +236,14 @@ if m:
         f.close()
         for entry in mld:
             tlp = entry.split("-")[0]
+            if tlp == "empire":
+                tlp = "empire-db"
+                entry = entry.replace("empire-", "empire-db-")
             if tlp in pmap:
                 tlp = pmap[tlp]
-            # fix for empire-db?
-            entrynew = entry
-            if re.match("^empire-db.+", entry):
-                tlp = "empire-db"
-                entrynew = entry.replace("-db", "", 1)
             if tlp in groups:
                 emails[tlp] = emails[tlp] if tlp in emails else {}
-                emails[tlp][entry] = mld[entrynew]
+                emails[tlp][entry] = mld[entry]
     jdata = {}
     ddata = {}
     rdata = {}



Mime
View raw message