From 8e4bcab6c531d9f7411ae26c77ea63b8e0c5154c Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 01 八月 2024 17:55:18 +0800
Subject: [PATCH] G撤修改/华鑫增值功能

---
 code_attribute/code_volumn_manager.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/code_attribute/code_volumn_manager.py b/code_attribute/code_volumn_manager.py
index 5aa094f..ed87496 100644
--- a/code_attribute/code_volumn_manager.py
+++ b/code_attribute/code_volumn_manager.py
@@ -93,8 +93,11 @@
     max60, yesterday = get_histry_volumn(code)
     if today is None:
         today = 0
-    if today is None or max60 is None or yesterday is None:
-        raise Exception(f"鑾峰彇閲忓け璐�:{code}")
+    if max60 is None or yesterday is None:
+        max60 = [today, '']
+        yesterday = today
+        if max60[0] < 1:
+            max60[0] = 1
     rate = round((int(today) + total_sell_volume) / max(int(max60[0]), int(yesterday)), 2)
     if not with_info:
         return rate

--
Gitblit v1.8.0