You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2016/01/11 20:16:12 UTC

storm git commit: Fixed issue with report.py

Repository: storm
Updated Branches:
  refs/heads/master 8299aec71 -> b4c02310f


Fixed issue with report.py


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b4c02310
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b4c02310
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b4c02310

Branch: refs/heads/master
Commit: b4c02310f8730bc9026512d6f3800774fa387c49
Parents: 8299aec
Author: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Authored: Mon Jan 11 13:15:53 2016 -0600
Committer: Robert (Bobby) Evans <ev...@yahoo-inc.com>
Committed: Mon Jan 11 13:15:53 2016 -0600

----------------------------------------------------------------------
 dev-tools/report/report.py | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/b4c02310/dev-tools/report/report.py
----------------------------------------------------------------------
diff --git a/dev-tools/report/report.py b/dev-tools/report/report.py
index 46ec175..477a498 100644
--- a/dev-tools/report/report.py
+++ b/dev-tools/report/report.py
@@ -113,14 +113,15 @@ class GitHubReport(Report):
         print "%s (Count = %s) " % (self.header, len(self.pull_requests))
 
         fields_tuple = self._build_tuple(('URL', 'Title', 'Created', 'Last Updated (Days)', 'User'), '')
-        row_tuple = self._row_tuple(self.pull_requests[0])
+        if len(self.pull_requests) > 0:
+            row_tuple = self._row_tuple(self.pull_requests[0])
 
-        formatter = Formatter(fields_tuple, row_tuple, self._min_width_tuple())
+            formatter = Formatter(fields_tuple, row_tuple, self._min_width_tuple())
 
-        self.print_(formatter, fields_tuple)
-        for pull in self.pull_requests:
-            row_tuple = self._row_tuple(pull)
-            self.print_(formatter, row_tuple)
+            self.print_(formatter, fields_tuple)
+            for pull in self.pull_requests:
+                row_tuple = self._row_tuple(pull)
+                self.print_(formatter, row_tuple)
 
     def jira_ids(self):
         """
@@ -249,4 +250,4 @@ class CompleteReport(Report):
 
     def _print_jira_github_combined_reports(self):
         for jira_github_combined in self.jira_github_combined_reports:
-            jira_github_combined.print_report()
\ No newline at end of file
+            jira_github_combined.print_report()