community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1702523 - /comdev/reporter.apache.org/trunk/readjira.py
Date Fri, 11 Sep 2015 17:47:01 GMT
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:



Mime
View raw message