去掉推荐时段00:00

Signed-off-by: yinzijian <yinzijian@haomozhixing.onaliyun.com>
This commit is contained in:
yinzijian 2025-12-03 19:27:19 +08:00
parent 8529b99df3
commit 2903d39b0a
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def cross_flow_tp_divide(params):
res['data']['flow_data'].append({ res['data']['flow_data'].append({
"flow": round(flow_list[i], 2), "flow": round(flow_list[i], 2),
"tp": time_str, "tp": time_str,
"recommend": recommend_tp.get(time_str, 0) "recommend": 1 if recommend_tp.get(time_str) and time_str != '00:00' else 0
}) })
current_time += timedelta(minutes=15) current_time += timedelta(minutes=15)