You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/09/11 19:47:01 UTC

svn commit: r1702523 - /comdev/reporter.apache.org/trunk/readjira.py

Author: sebb
Date: Fri Sep 11 17:46:59 2015
New Revision: 1702523

URL: http://svn.apache.org/r1702523
Log:
Unnecessary duplicate variable assignment

Modified:
    comdev/reporter.apache.org/trunk/readjira.py

Modified: comdev/reporter.apache.org/trunk/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/readjira.py?rev=1702523&r1=1702522&r2=1702523&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/readjira.py (original)
+++ comdev/reporter.apache.org/trunk/readjira.py Fri Sep 11 17:46:59 2015
@@ -18,10 +18,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: