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)