Skip to content

Commit

Permalink
Fix update record bug(#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
you-n-g committed Dec 3, 2021
1 parent 6d6c586 commit 84103c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/workflow/online/update.py
Expand Up @@ -146,7 +146,7 @@ def __init__(self, record: Recorder, to_date=None, from_date=None, hist_ref: int
# 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:
"""
Expand Down

0 comments on commit 84103c7

Please sign in to comment.