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 2015/08/19 11:01:46 UTC
svn commit: r1696542 - /comdev/reporter.apache.org/trunk/site/getjson.py
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 = {}