reverted more unitended changes

This commit is contained in:
Gourav Kumar 2022-02-19 15:43:52 +05:30
parent c3928f756e
commit 2790106790

View File

@ -196,7 +196,7 @@ class TimeSeriesCore:
def tail(self, n: int = 6): def tail(self, n: int = 6):
keys = list(self.time_series.keys()) keys = list(self.time_series.keys())
keys = keys[-n:] keys = keys[-n:]
result = [item for item in self.time_series.items() if item[0] in keys] result = [(key, self.time_series[key]) for key in keys]
return result return result