#44: Harmonise environment variables with constant names

This commit is contained in:
Daniel Quinn
2016-03-01 22:37:42 +00:00
parent 7d1aa1175f
commit 26c3781350
6 changed files with 47 additions and 12 deletions

View File

@@ -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,

View File

@@ -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():