1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-03 11:00:57 +08:00

Fix update record bug(#723)

This commit is contained in:
you-n-g
2021-12-03 10:03:30 +08:00
committed by GitHub
parent 6d6c586dc2
commit 84103c7d43

View File

@@ -146,7 +146,7 @@ class DSBasedUpdater(RecordUpdater, metaclass=ABCMeta):
# The recent label data should be updated together
self.last_end = self.old_data.dropna().index.get_level_values("datetime").max()
else:
self.last_end = get_date_by_shift(from_date, -1, align="left")
self.last_end = get_date_by_shift(from_date, -1, align="right")
def prepare_data(self) -> DatasetH:
"""