oak 2 年之前
父節點
當前提交
0fa24fbee5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hhh_index/genjson/gen_realtime.py

+ 2 - 2
hhh_index/genjson/gen_realtime.py

@@ -136,7 +136,7 @@ def genjson_new(filename: str = "realtime.json"):
                             from _hcolumn
                             WHERE onoff='1' """ +str_id_use+"""
                             AND NOW() > sdate
-                            ORDER BY hcolumn_id DESC
+                            ORDER BY  sdate desc,hcolumn_id DESC
                             LIMIT """+ str(id_len) +""" """)
 
 
@@ -196,7 +196,7 @@ def genjson_new(filename: str = "realtime.json"):
                             WHERE
                             _hcase.onoff='1' AND _hdesigner.onoff='1' 
                             AND (NOW() > sdate)  """+str_id_use+"""
-                            ORDER BY hcase_id DESC
+                            ORDER BY  sdate desc,hcase_id DESC
                             LIMIT """+ str(id_len) +""" """)
 
             count_k=1