From c3928f756e7970623406c72a27b05f36934a7e09 Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Sat, 19 Feb 2022 15:42:35 +0530 Subject: [PATCH] reverted unitended changes --- fincal/fincal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fincal/fincal.py b/fincal/fincal.py index 03564c9..d874210 100644 --- a/fincal/fincal.py +++ b/fincal/fincal.py @@ -196,7 +196,7 @@ class TimeSeriesCore: def tail(self, n: int = 6): keys = list(self.time_series.keys()) keys = keys[-n:] - result = [(key, self.time_series[key]) for key in keys] + result = [item for item in self.time_series.items() if item[0] in keys] return result