From 355f76dad0a8a6948d71462cfc6e59866ad6183e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 27 七月 2023 17:50:56 +0800
Subject: [PATCH] bug修复

---
 third_data/data_server.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/third_data/data_server.py b/third_data/data_server.py
index dda762a..fbe39e9 100644
--- a/third_data/data_server.py
+++ b/third_data/data_server.py
@@ -63,8 +63,9 @@
         for d in total_datas:
             if d[2] not in limit_up_reason_want_count_dict:
                 limit_up_reason_want_count_dict[d[2]] = 0
-            limit_up_reason_want_count_dict[d[2]] += 1
-
+            if d[3] in want_codes:
+                limit_up_reason_want_count_dict[d[2]] += 1
+        # (鏉垮潡鍚嶇О锛屾定鍋滀唬鐮佹暟閲忥紝鎯充拱鍗曟暟閲�,娑ㄥ仠鏃堕棿)
         limit_up_reason_statistic_info = [
             (k, len(limit_up_reason_dict[k]), limit_up_reason_want_count_dict.get(k), limit_up_reason_dict[k][0][5]) for
             k in
@@ -368,7 +369,8 @@
                 if d[2] != plate:
                     continue
                 # 浠g爜,鍚嶇О,娑ㄥ仠鏃堕棿,鏄惁鐐告澘,鏄惁鎯充拱,鏄惁宸茬粡涓嬭繃鍗�
-                codes_info.append([d[3], d[4], tool.to_time_str(int(d[5])), d[3] not in now_limit_up_codes, False, False])
+                codes_info.append(
+                    [d[3], d[4], tool.to_time_str(int(d[5])), d[3] not in now_limit_up_codes, False, False])
             codes_info.sort(key=lambda x: x[2])
             # 鏌ヨ鏄惁涓烘兂涔板崟
             want_codes = gpcode_manager.WantBuyCodesManager.list_code()

--
Gitblit v1.8.0