Skip to content

Commit 14b3303

Browse files
committed
Fix JqkaEmotionRecorder invalid time range issue
1 parent f19115c commit 14b3303

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zvt/recorders/jqka/emotion/JqkaEmotionRecorder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def init_timestamps(self, entity_item) -> List[pd.Timestamp]:
3939
if latest_infos:
4040
start_date = latest_infos[0].timestamp
4141
else:
42-
# 最近一年半的数据
43-
start_date = date_time_by_interval(current_date(), -365 - 366 / 2)
42+
# 最近一年的数据
43+
start_date = date_time_by_interval(current_date(), -360)
4444
return pd.date_range(start=start_date, end=pd.Timestamp.now(), freq="B").tolist()
4545

4646
def record(self, entity, start, end, size, timestamps):
@@ -102,8 +102,8 @@ def init_timestamps(self, entity_item) -> List[pd.Timestamp]:
102102
if latest_infos:
103103
start_date = latest_infos[0].timestamp
104104
else:
105-
# 最近一年半的数据
106-
start_date = date_time_by_interval(current_date(), -365 - 366 / 2)
105+
# 最近一年的数据
106+
start_date = date_time_by_interval(current_date(), -360)
107107
return pd.date_range(start=start_date, end=pd.Timestamp.now(), freq="B").tolist()
108108

109109
def record(self, entity, start, end, size, timestamps):

0 commit comments

Comments
 (0)