community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1698213 - in /comdev/reporter.apache.org/trunk: parseversions.py site/getjson.py site/jiraversions.py
Date Thu, 27 Aug 2015 19:32:47 GMT
Author: sebb
Date: Thu Aug 27 19:32:47 2015
New Revision: 1698213

URL: http://svn.apache.org/r1698213
Log:
Remove duplicate variable assignments

Modified:
    comdev/reporter.apache.org/trunk/parseversions.py
    comdev/reporter.apache.org/trunk/site/getjson.py
    comdev/reporter.apache.org/trunk/site/jiraversions.py

Modified: comdev/reporter.apache.org/trunk/parseversions.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/parseversions.py?rev=1698213&r1=1698212&r2=1698213&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/parseversions.py (original)
+++ comdev/reporter.apache.org/trunk/parseversions.py Thu Aug 27 19:32:47 2015
@@ -24,7 +24,7 @@ for project in projects:
        base64string = base64.encodestring('%s:%s' % ('githubbot', jirapass))[:-1]
        rdata = getReleaseData(project)
        try:
-           req = req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project/%s/versions"
% jiraname)
+           req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project/%s/versions"
% jiraname)
            req.add_header("Authorization", "Basic %s" % base64string)
            cdata = json.loads(urllib2.urlopen(req).read())
            for entry in cdata:

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1698213&r1=1698212&r2=1698213&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Thu Aug 27 19:32:47 2015
@@ -75,7 +75,7 @@ def getJIRAProjects(project):
             base64string = base64.encodestring('%s:%s' % ('githubbot', jirapass))[:-1]
     
             try:
-                req = req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project.json")
+                req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project.json")
                 req.add_header("Authorization", "Basic %s" % base64string)
                 x = json.loads(urllib2.urlopen(req).read())
                 with open("/var/www/reporter.apache.org/data/JIRA/projects.json", "w") as
f:
@@ -111,10 +111,10 @@ def getJIRAS(project):
         base64string = base64.encodestring('%s:%s' % ('githubbot', jirapass))[:-1]
 
         try:
-            req = req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20"""
+ project + """%20AND%20created%20%3E=%20-91d""")
+            req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20"""
+ project + """%20AND%20created%20%3E=%20-91d""")
             req.add_header("Authorization", "Basic %s" % base64string)
             cdata = json.loads(urllib2.urlopen(req).read())
-            req = req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20"""
+ project + """%20AND%20resolved%20%3E=%20-91d""")
+            req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20"""
+ project + """%20AND%20resolved%20%3E=%20-91d""")
             req.add_header("Authorization", "Basic %s" % base64string)
             rdata = json.loads(urllib2.urlopen(req).read())
             with open("/var/www/reporter.apache.org/data/JIRA/%s.json" % project, "w") as
f:

Modified: comdev/reporter.apache.org/trunk/site/jiraversions.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/jiraversions.py?rev=1698213&r1=1698212&r2=1698213&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/jiraversions.py (original)
+++ comdev/reporter.apache.org/trunk/site/jiraversions.py Thu Aug 27 19:32:47 2015
@@ -51,7 +51,7 @@ if (isMember(user) or project in groups)
        base64string = base64.encodestring('%s:%s' % ('githubbot', jirapass))[:-1]
        rdata = getReleaseData(project)
        try:
-           req = req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project/%s/versions"
% jiraname)
+           req = urllib2.Request("https://issues.apache.org/jira/rest/api/2/project/%s/versions"
% jiraname)
            req.add_header("Authorization", "Basic %s" % base64string)
            cdata = json.loads(urllib2.urlopen(req).read())
            for entry in cdata:



Mime
View raw message