diff --git a/main_juxiting.py b/main_juxiting.py index ed9bbf1..fe365bd 100644 --- a/main_juxiting.py +++ b/main_juxiting.py @@ -388,14 +388,13 @@ def predict_main(): if __name__ == '__main__': # global end_time # 遍历2024-11-25 到 2024-12-3 之间的工作日日期 - # for i_time in pd.date_range('2025-2-1', '2025-3-18', freq='B'): - # try: - # global_config['end_time'] = i_time.strftime('%Y-%m-%d') - # predict_main() - # except Exception as e: - # logger.info(f'预测失败:{e}') - # continue + for i_time in pd.date_range('2025-2-1', '2025-3-18', freq='B'): + try: + global_config['end_time'] = i_time.strftime('%Y-%m-%d') + predict_main() + except Exception as e: + logger.info(f'预测失败:{e}') + continue # predict_main() - push_market_value()