Author: sebb
Date: Wed Oct 7 14:55:08 2015
New Revision: 1707323
URL: http://svn.apache.org/viewvc?rev=1707323&view=rev
Log:
Allow Struts and Tiles project categories to be found
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=1707323&r1=1707322&r2=1707323&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Oct 7 14:55:08 2015
@@ -124,10 +124,13 @@ def getJIRAProjects(project):
for entry in x:
if entry['name'].replace("Apache ", "").strip().lower() == project:
jiras.append(entry['key'])
- elif 'projectCategory' in entry and
entry['projectCategory']['name'].replace("Apache ", "").strip().lower() ==
project:
+ elif 'projectCategory' in entry and
fixProjectCategory(entry['projectCategory']['name']) == project:
jiras.append(entry['key'])
return jiras
+def fixProjectCategory(cat):
+ return cat.replace("Apache ", "").replace(" Framework", "").strip().lower()
+
def getJIRAS(project):
"""Reads data/JIRA/%s.json % (project), re-creating it if it is stale
from the number of issues created and resolved in the last 91 days