From 043dacfe2494881b188b1c8603cbff9823fa5799 Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Tue, 1 Jun 2021 14:31:08 +0800 Subject: [PATCH] changed GET Data Source Point Collection to order by ID --- myems-api/core/datasource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myems-api/core/datasource.py b/myems-api/core/datasource.py index b1611a87..9898e521 100644 --- a/myems-api/core/datasource.py +++ b/myems-api/core/datasource.py @@ -341,7 +341,7 @@ class DataSourcePointCollection: " units, high_limit, low_limit, ratio, is_trend, is_virtual, address, description " " FROM tbl_points " " WHERE data_source_id = %s " - " ORDER BY name ") + " ORDER BY id ") cursor.execute(query_point, (id_,)) rows_point = cursor.fetchall()