From ffafa87cb8c880aebbd92f0e73553d502d91698a Mon Sep 17 00:00:00 2001 From: James Turk Date: Fri, 10 Apr 2015 14:19:40 -0400 Subject: [PATCH] mass refactor --- fitnotes/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fitnotes/views.py b/fitnotes/views.py index 8abb44b..17f90d6 100644 --- a/fitnotes/views.py +++ b/fitnotes/views.py @@ -1,4 +1,5 @@ from django.shortcuts import render +from . import importer @login_required def fitnotes_upload(request): @@ -10,7 +11,7 @@ def fitnotes_upload(request): for chunk in request.FILES['file'].chunks(): tmp.write(chunk) try: - importers.import_fitnotes_db(fname, request.user) + importer.import_fitnotes_db(fname, request.user) finally: os.remove(fname) else: