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
597c2d78
authored
2021-03-29 16:54:14 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
open compare
1 parent
8ae1670d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/views.py
src/apps/doc/management/commands/ocr_process.py
View file @
597c2d7
...
...
@@ -926,9 +926,9 @@ class Command(BaseCommand, LoggerMixin):
self
.
log_base
,
task_str
,
res_obj
.
id
))
# 触发比对
try
:
pass
#
compare.apply_async((doc.application_id, business_type, None, res_obj.id),
#
queue='queue_compare')
#
pass
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
),
queue
=
'queue_compare'
)
except
Exception
as
e
:
self
.
online_log
.
error
(
'{0} [process error (comparison info send)] [task={1}] [error={2}]'
.
format
(
...
...
src/apps/doc/views.py
View file @
597c2d7
...
...
@@ -346,7 +346,7 @@ class CompareView(GenericView):
corporate_cus_info
=
corporate_cus_info
,
)
# 触发比对
#
compare.apply_async((application_id, business_type, uniq_seq, None), queue='queue_compare')
compare
.
apply_async
((
application_id
,
business_type
,
uniq_seq
,
None
),
queue
=
'queue_compare'
)
return
response
.
ok
()
post
.
openapi_doc
=
'''
...
...
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