fix
Showing
2 changed files
with
2 additions
and
1 deletions
src-20240130.zip
0 → 100644
No preview for this file type
... | @@ -2035,8 +2035,9 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -2035,8 +2035,9 @@ class Command(BaseCommand, LoggerMixin): |
2035 | result_class = HILOCRResult if is_ca else HILSEOCRResult | 2035 | result_class = HILOCRResult if is_ca else HILSEOCRResult |
2036 | else: | 2036 | else: |
2037 | result_class = AFCOCRResult if is_ca else AFCSEOCRResult | 2037 | result_class = AFCOCRResult if is_ca else AFCSEOCRResult |
2038 | res_obj = result_class.objects.select_for_update().filter(application_id=doc.application_id).first() | 2038 | |
2039 | with transaction.atomic(): | 2039 | with transaction.atomic(): |
2040 | res_obj = result_class.objects.select_for_update().filter(application_id=doc.application_id).first() | ||
2040 | self.online_log.info('{0} [sql lock application_id={1}]'.format(self.log_base, doc.application_id)) | 2041 | self.online_log.info('{0} [sql lock application_id={1}]'.format(self.log_base, doc.application_id)) |
2041 | if res_obj is None: | 2042 | if res_obj is None: |
2042 | res_obj = result_class() | 2043 | res_obj = result_class() | ... | ... |
-
Please register or sign in to post a comment