mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge branch 'master' of https://github.com/danielquinn/paperless into feature/heuristically-extract-date-from-document-text
This commit is contained in:
commit
f39c7654a0
@ -45,3 +45,4 @@ WORKDIR /usr/src/paperless/src
|
|||||||
VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/export"]
|
VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/export"]
|
||||||
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
|
||||||
CMD ["--help"]
|
CMD ["--help"]
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ pdftotext>=2.0.1
|
|||||||
|
|
||||||
# For the tests
|
# For the tests
|
||||||
factory-boy
|
factory-boy
|
||||||
pytest
|
pytest==3.3.2 # Newer versions break with pytest-sugar
|
||||||
pytest-django
|
pytest-django
|
||||||
pytest-sugar
|
pytest-sugar
|
||||||
pytest-env
|
pytest-env
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = (1, 1, 0)
|
__version__ = (1, 2, 0)
|
||||||
|
@ -260,6 +260,6 @@ def get_text_from_pdf(pdf_file):
|
|||||||
try:
|
try:
|
||||||
pdf = pdftotext.PDF(f)
|
pdf = pdftotext.PDF(f)
|
||||||
except pdftotext.Error:
|
except pdftotext.Error:
|
||||||
return False
|
return ""
|
||||||
|
|
||||||
return "\n".join(pdf)
|
return "\n".join(pdf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user