community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1867077 - /comdev/reporter.apache.org/trunk/scripts/pdata.py
Date Tue, 17 Sep 2019 21:24:25 GMT
Author: sebb
Date: Tue Sep 17 21:24:25 2019
New Revision: 1867077

URL: http://svn.apache.org/viewvc?rev=1867077&view=rev
Log:
Unused

Modified:
    comdev/reporter.apache.org/trunk/scripts/pdata.py

Modified: comdev/reporter.apache.org/trunk/scripts/pdata.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/pdata.py?rev=1867077&r1=1867076&r2=1867077&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/pdata.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/pdata.py Tue Sep 17 21:24:25 2019
@@ -21,7 +21,7 @@
     
 """
 
-import os, sys, re, json, subprocess, time
+import os, sys, re, json, time
 import base64, requests
 import rapp.kibble
 
@@ -114,7 +114,6 @@ def getJIRAProjects(project, tlpid):
        Assumes that the project names match or the project category matches
        (after trimming "Apache " and spaces and lower-casing)"""
     project = project.replace("Apache ", "").strip().lower()
-    refresh = True
     x = {}
     jiras = []
     try:
@@ -125,7 +124,6 @@ def getJIRAProjects(project, tlpid):
         except:
             pass
         if mtime >= (time.time() - 86400):
-            refresh = False
             x = readJson(RAOHOME+"data/JIRA/jira_projects.json")
         else:
             if sys.version_info >= (3, 0):
@@ -191,7 +189,7 @@ def getJIRAS(project):
                 json.dump([cdata['total'], rdata['total'], project], f, indent=1)
                 f.close()
             return cdata['total'], rdata['total'], project
-        except Exception as err:
+        except Exception:
             # Don't create an empty file if the request fails. The likely cause is that the
project does not use JIRA,
             # or getjson has been invoked with an invalid pmc name. Invalid files will cause
the refresh script to
             # retry the requests unnecessarily. 
@@ -240,8 +238,6 @@ def getReleaseData(project):
     """Reads data/releases/%s.json and returns the contents"""
     return readJson(RAOHOME+"data/releases/%s.json" % project, {})
 
-groups = []
-
 pmcSummary = None
 dataHealth = None
 pchanges = None
@@ -256,9 +252,9 @@ checker_json = None
 def generate(user, project, runkibble):
     global lastRead
     if re.match(r"^[-a-zA-Z0-9_.]+$", user):
-        isMember = isASFMember(user)
+#         isMember = isASFMember(user)
     
-        groups = getPMCs(user)
+#         groups = getPMCs(user)
         
         # Check if we need to re-read json inputs...
         if lastRead < (time.time() - CACHE_TIMEOUT):
@@ -299,7 +295,6 @@ def generate(user, project, runkibble):
         cdata = {}
         ddata = {}
         rdata = {}
-        allpmcs = []
         keys = {}
         count = {}
         health = {}
@@ -318,7 +313,7 @@ def generate(user, project, runkibble):
         if xgroup in cchanges:
             count[1] = len(cchanges[xgroup])
         jdata = [0,0, None]
-        ddata, allpmcs, health = getProjectData(group)
+        ddata, _, health = getProjectData(group)
         rdata = getReleaseData(group)
         if group in bugzillastats:
             bdata = bugzillastats



Mime
View raw message