From ec4e756e50018fbea40170e5c8e535bd904d396c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 10 Nov 2017 12:54:29 +0100 Subject: [PATCH] type correction --- rowers/management/commands/processemail.py | 2 +- rowers/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rowers/management/commands/processemail.py b/rowers/management/commands/processemail.py index aa36ea14..cae0ccb0 100644 --- a/rowers/management/commands/processemail.py +++ b/rowers/management/commands/processemail.py @@ -121,7 +121,7 @@ class Command(BaseCommand): extension = attachment.document.name[-3:].lower() try: message = Message.objects.get(id=attachment.message_id) - if mm.encoded: + if message.encoded: # if message.text: body = "\n".join(message.text.splitlines()) else: diff --git a/rowers/views.py b/rowers/views.py index f475ab3c..542c5ad0 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -8495,6 +8495,7 @@ def workout_upload_view(request, except KeyError: upload_to_tp = False + response = {} if request.method == 'POST': form = DocumentsForm(request.POST,request.FILES) optionsform = UploadOptionsForm(request.POST)