A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Merge pull request #721 from paperless-ngx/bug-fix-date-ignore
shamoon536576518e54
diff --cc src/documents/models.pyindex fcb4be382,c7bd3767e..ecabe085c--- a/src/documents/models.py+++ b/src/documents/models.py@@@ -424,10 -428,10 +427,10 @@@ class FileInfo@classmethoddef _mangle_property(cls, properties, name):if name in properties:- properties[name] = getattr(cls, "_get_{}".format(name))(properties[name])+ properties[name] = getattr(cls, f"_get_{name}")(properties[name])@classmethod- def from_filename(cls, filename):+ def from_filename(cls, filename) -> "FileInfo":# Mutate filename in-place before parsing its components# by applying at most one of the configured transformations.for (pattern, repl) in settings.FILENAME_PARSE_TRANSFORMS:diff --cc src/documents/parsers.pyindex be4db1e71,b910778bd..469ec2f1e--- a/src/documents/parsers.py+++ b/src/documents/parsers.py@@@ -143,10 -146,10 +146,10 @@@ def run_convertlogger.debug("Execute: " + " ".join(args), extra={"group": logging_group})if not subprocess.Popen(args, env=environment).wait() == 0:- raise ParseError("Convert failed at {}".format(args))+ raise ParseError(f"Convert failed at {args}")- def get_default_thumbnail():+ def get_default_thumbnail() -> str:return os.path.join(os.path.dirname(__file__), "resources", "document.png")