Browse Source

采购意向预算金额修复

znj 2 năm trước cách đây
mục cha
commit
81869da644
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      BiddingKG/dl/interface/predictor.py

+ 1 - 1
BiddingKG/dl/interface/predictor.py

@@ -2391,7 +2391,7 @@ class ProductAttributesPredictor():
                                 re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?万?", budget)
                                 if re_price:
                                     budget = re_price[0]
-                                    if '万元' in header_list[2] and '万' not in budget:
+                                    if '万元' in header_list2[2] and '万' not in budget:
                                         budget += '万元'
                                     budget = str(getUnifyMoney(budget))
                                 else: