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 2019/08/06 20:52:30 UTC

svn commit: r1864565 - /comdev/reporter.apache.org/trunk/site/getjson.py

Author: humbedooh
Date: Tue Aug  6 20:52:30 2019
New Revision: 1864565

URL: http://svn.apache.org/viewvc?rev=1864565&view=rev
Log:
if we don't run kibble when user only has one project, we ruin the cache, so let's run it...

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=1864565&r1=1864564&r2=1864565&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Tue Aug  6 20:52:30 2019
@@ -384,9 +384,11 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     if anon:
         mlstats = {}
     
-    # Add in kibble data if called with only= ...
+    # Add in kibble data if called with only= OR only one project...
     kibble = None
-    if oproject:
+    if oproject or len(groups) == 1:
+        if not oproject:
+            oproject = groups[0]
         try:
             xenv = os.environ.copy()
             del xenv['SCRIPT_NAME']
@@ -398,6 +400,7 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
         except subprocess.CalledProcessError as e:
             sys.stderr.write("Kibble runtime error:")
             sys.stderr.write(e.output)
+            
     
     output = {
         'count': count,