diff --git a/core/views/other.py b/core/views/other.py index 186616a..d9eba3f 100644 --- a/core/views/other.py +++ b/core/views/other.py @@ -259,8 +259,8 @@ def scanupload(request, wallet=None): if len(files) ==0 : files.append('(no image files in wallet)') - else: - form = SimpleUploadFileForm() - return render(request, 'scanuploadform.html', - {'form': form, 'wallet': wallet, 'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty, 'files': files, 'dirs': dirs, 'filesaved': filesaved, 'actual_saved': actual_saved}) + + form = SimpleUploadFileForm() + return render(request, 'scanuploadform.html', + {'form': form, 'wallet': wallet, 'year': year, 'prev': prev, 'next': next, 'prevy': prevy, 'nexty': nexty, 'files': files, 'dirs': dirs, 'filesaved': filesaved, 'actual_saved': actual_saved})