97309afa by chenyao

修改个fsm电子合同的bug

1 parent c06bbf34
...@@ -209,7 +209,8 @@ class Retriever: ...@@ -209,7 +209,8 @@ class Retriever:
209 if pno_str == '-1': 209 if pno_str == '-1':
210 is_last_pno = True 210 is_last_pno = True
211 pno_int_list = [int(pno_str) for pno_str in pdf_text_list.keys()] 211 pno_int_list = [int(pno_str) for pno_str in pdf_text_list.keys()]
212 pno_str = str(max(pno_int_list)) 212 if len(pno_int_list) > 0:
213 pno_str = str(max(pno_int_list))
213 214
214 # 搜索关键词 215 # 搜索关键词
215 key_text_info = dict() 216 key_text_info = dict()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!