Skip to content

Commit

Permalink
Merge pull request #74 from CybercentreCanada/promote_sections
Browse files Browse the repository at this point in the history
Promote image section as screenshot
  • Loading branch information
cccs-sgaron authored Oct 3, 2023
2 parents 835e8c3 + 4613cb4 commit b3a6d0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions document_preview/document_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def execute(self, request):
else:
self.log.warning(f"Unknown save method for OCR given: {save_ocr_output}")

image_section.promote_as_screenshot()
result.add_section(image_section)
request.result = result
self.log.debug(f"Runtime: {time() - start}s")

0 comments on commit b3a6d0e

Please sign in to comment.