Przeglądaj źródła

修改生成需求数量

xueyiming 4 tygodni temu
rodzic
commit
668891372e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      examples/demand/data_query_tools.py

+ 3 - 3
examples/demand/data_query_tools.py

@@ -97,11 +97,11 @@ where t1.缺量>= {count}
         for r in data:
             lack_count = r[9]
             if lack_count > 1000:
-                count = 70
-            elif 500 < lack_count <= 1000:
                 count = 50
-            elif 100 < lack_count <= 500:
+            elif 500 < lack_count <= 1000:
                 count = 30
+            elif 100 < lack_count <= 500:
+                count = 20
             elif 50 < lack_count <= 100:
                 count = 10
             else: