Author: humbedooh
Date: Sat Aug 3 07:16:07 2019
New Revision: 1864310
URL: http://svn.apache.org/viewvc?rev=1864310&view=rev
Log:
add in kibble data if called with only=...
this way we can quickly display it in the wizard
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=1864310&r1=1864309&r2=1864310&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Sat Aug 3 07:16:07 2019
@@ -373,6 +373,14 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
allpmcs = []
if anon:
mlstats = {}
+
+ # Add in kibble data if called with only= ...
+ if oproject:
+ try:
+ txt = subprocess.check_output(('%s/site/wizard/kibble.py', oproject))
+ kibble = json.loads(txt)
+ except:
+ pass
output = {
'count': count,
'pmcs': groups,
@@ -390,6 +398,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
'health': health,
'checker': checker,
'you': committers[user],
+ 'kibble': kibble,
}
# AFAICT dumps always uses \n for EOL
|