diff --git a/gitinspector/blame.py b/gitinspector/blame.py index 287e5bd..b76c9c4 100644 --- a/gitinspector/blame.py +++ b/gitinspector/blame.py @@ -23,6 +23,7 @@ from localization import N_ from outputable import Outputable from changes import FileDiff import comment +import changes import filtering import format import gravatar @@ -151,9 +152,9 @@ BLAME_INFO_TEXT = N_("Below are the number of rows from each author that have su "intact in the current revision") class BlameOutput(Outputable): - def __init__(self, changes, hard): + def __init__(self, hard): self.hard = hard - self.changes = changes + self.changes = changes.get(hard) Outputable.__init__(self) def output_html(self): @@ -173,11 +174,10 @@ class BlameOutput(Outputable): for i, entry in enumerate(blames): work_percentage = str("{0:.2f}".format(100.0 * entry[1].rows / total_blames)) - author_email = self.changes.get_author_email(entry[0]) - blame_xml += "" if i % 2 == 1 else ">") if format.get_selected() == "html": + author_email = self.changes.get_author_email(entry[0]) blame_xml += "{1}".format(gravatar.get_url(author_email), entry[0]) else: blame_xml += "" + entry[0] + "" diff --git a/gitinspector/gitinspector.py b/gitinspector/gitinspector.py index ffe00ad..bccd123 100755 --- a/gitinspector/gitinspector.py +++ b/gitinspector/gitinspector.py @@ -78,7 +78,7 @@ class Runner: outputable.output(changes.ChangesOutput(self.hard)) if changes.get(self.hard).get_commits(): - outputable.output(blame.BlameOutput(changes.get(self.hard), self.hard)) + outputable.output(blame.BlameOutput(self.hard)) if self.timeline: outputable.output(timeline.Timeline(changes.get(self.hard), self.useweeks))