From 938d42dc80ff90f72340dbdefe8068f3142c359a Mon Sep 17 00:00:00 2001 From: roger Date: Thu, 30 Mar 2023 15:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- red_forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(