mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
#44: Harmonise environment variables with constant names
This commit is contained in:
@@ -14,7 +14,7 @@ from .consumer import Consumer
|
||||
|
||||
class UploadForm(forms.Form):
|
||||
|
||||
SECRET = settings.UPLOAD_SHARED_SECRET
|
||||
SECRET = settings.SHARED_SECRET
|
||||
TYPE_LOOKUP = {
|
||||
"application/pdf": Document.TYPE_PDF,
|
||||
"image/png": Document.TYPE_PNG,
|
||||
|
@@ -44,7 +44,7 @@ class Message(Loggable):
|
||||
and n attachments, and that we don't care about the message body.
|
||||
"""
|
||||
|
||||
SECRET = settings.UPLOAD_SHARED_SECRET
|
||||
SECRET = settings.SHARED_SECRET
|
||||
|
||||
def __init__(self, data, group=None):
|
||||
"""
|
||||
@@ -175,7 +175,7 @@ class MailFetcher(Loggable):
|
||||
# Reset the grouping id for each fetch
|
||||
self.logging_group = uuid.uuid4()
|
||||
|
||||
self.log("info", "Checking mail")
|
||||
self.log("debug", "Checking mail")
|
||||
|
||||
for message in self._get_messages():
|
||||
|
||||
|
Reference in New Issue
Block a user