diff --git a/red_forecast.py b/red_forecast.py index a99526c..7fb725b 100644 --- a/red_forecast.py +++ b/red_forecast.py @@ -115,7 +115,7 @@ def update_red_forecast_db(): date_id = all_data[-1]['dateId'] params = 1 red_rate = json.dumps(red_forecast_dict) - red_suggest = json.dumps(red_forecast_list[0:6]) + red_suggest = json.dumps(sorted(red_forecast_list[0:6])) conn = pymysql.connect(**db) curser = conn.cursor(DictCursor) curser.execute(