A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Better variable names
Daniel Quinn4f1bf81d5be1
diff --git a/src/paperless/db.py b/src/paperless/db.pyindex ba2288e0f..49e4fea4b 100644--- a/src/paperless/db.py+++ b/src/paperless/db.py@@ -11,13 +11,14 @@ class GnuPG(object):gpg = gnupg.GPG(gnupghome=settings.GNUPG_HOME)@classmethod- def decrypted(cls, path):- return cls.gpg.decrypt_file(path, passphrase=settings.PASSPHRASE).data+ def decrypted(cls, file_handle):+ return cls.gpg.decrypt_file(+ file_handle, passphrase=settings.PASSPHRASE).data@classmethod- def encrypted(cls, path):+ def encrypted(cls, file_handle):return cls.gpg.encrypt_file(- path,+ file_handle,recipients=None,passphrase=settings.PASSPHRASE,symmetric=True