mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
refactor
This commit is contained in:
parent
7164f21fbe
commit
c7c6be42be
5 changed files with 91 additions and 90 deletions
|
|
@ -113,6 +113,7 @@ class DocumentType(MatchingModel):
|
|||
|
||||
class Document(models.Model):
|
||||
|
||||
# TODO: why do we need an explicit list
|
||||
TYPE_PDF = "pdf"
|
||||
TYPE_PNG = "png"
|
||||
TYPE_JPG = "jpg"
|
||||
|
|
@ -291,7 +292,7 @@ class FileInfo:
|
|||
non_separated_word=r"([\w,. ]|([^\s]-))"
|
||||
)
|
||||
)
|
||||
|
||||
# TODO: what is this used for
|
||||
formats = "pdf|jpe?g|png|gif|tiff?|te?xt|md|csv"
|
||||
REGEXES = OrderedDict([
|
||||
("created-correspondent-title-tags", re.compile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue