fix bug
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -246,7 +246,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -246,7 +246,7 @@ class Command(BaseCommand, LoggerMixin): |
246 | json_data_1 = { | 246 | json_data_1 = { |
247 | "file": file_data | 247 | "file": file_data |
248 | } | 248 | } |
249 | response_1 = requests.post(self.ocr_url_1, data=json_data_1) | 249 | response_1 = requests.post(self.ocr_url_1, json=json_data_1) |
250 | if response_1.status_code == 200: | 250 | if response_1.status_code == 200: |
251 | ocr_res_1 = response_1.json() | 251 | ocr_res_1 = response_1.json() |
252 | self.cronjob_log.info('{0} [ocr_1 result] [img={1}] [res={2}]'.format( | 252 | self.cronjob_log.info('{0} [ocr_1 result] [img={1}] [res={2}]'.format( | ... | ... |
-
Please register or sign in to post a comment