Skip to content

Commit

Permalink
Merge pull request #922 from InfuseAI/chore/sc-32530/adjust-compare-r…
Browse files Browse the repository at this point in the history
…eports-behavior

[Chore] Adjust compare-reports command behavior
  • Loading branch information
kentwelcome authored Nov 7, 2023
2 parents 276a0c5 + 0398eab commit 02b474b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion piperider_cli/compare_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ def _walk_throw_runs(path):
def get_the_last_two_reports(self):
outputs = self.list_existing_outputs()
outputs.sort(key=lambda x: x.created_at)
outputs = list(filter(lambda x: x.name == outputs[-1].name, outputs))
if len(outputs) < 2:
return None, None
return outputs[-2:]
Expand Down

0 comments on commit 02b474b

Please sign in to comment.