Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3ad32bbb
authored
2024-11-15 14:15:02 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-5118'
2 parents
761c7bf7
040a0fa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
3ad32bb
...
...
@@ -3454,6 +3454,8 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list
tmp_set
=
set
()
last_cn_reason_list
=
[]
last_cn_reason_list_attention
=
[]
last_cn_reason_list_not_attention
=
[]
bs_cn_reason_list
=
[]
for
i
in
cn_reason_list
:
if
i
in
tmp_set
:
...
...
@@ -3463,7 +3465,13 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list
# bs_cn_reason_list.append(i)
else
:
tmp_set
.
add
(
i
)
last_cn_reason_list
.
append
(
i
)
if
'关注'
in
i
:
last_cn_reason_list_attention
.
append
(
i
)
else
:
last_cn_reason_list_not_attention
.
append
(
i
)
# 要把2个list中的元素加进去,不是加整个list所以要用extend,不能用append
last_cn_reason_list
.
extend
(
last_cn_reason_list_attention
)
last_cn_reason_list
.
extend
(
last_cn_reason_list_not_attention
)
cn_failure_reason_str
=
'
\n
'
.
join
(
last_cn_reason_list
)
bs_failure_reason_str
=
'
\n
'
.
join
(
bs_cn_reason_list
)
return
compare_result
,
total_fields
,
failed_count
,
successful_at_this_level
,
failure_reason_str
,
\
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment