From 0398eab9f620b541e51faf46010af897bf1864b9 Mon Sep 17 00:00:00 2001 From: "Wei-Chun, Chang" Date: Fri, 3 Nov 2023 10:40:31 +0800 Subject: [PATCH] Remove target filter when comparing with last flag Signed-off-by: Wei-Chun, Chang --- piperider_cli/compare_report.py | 1 - 1 file changed, 1 deletion(-) diff --git a/piperider_cli/compare_report.py b/piperider_cli/compare_report.py index 6b6298982..3d446d97e 100644 --- a/piperider_cli/compare_report.py +++ b/piperider_cli/compare_report.py @@ -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:]