Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Mar 21, 2018
1 parent 0888deb commit 5aed721
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion rdmo/conditions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def get(self, request, *args, **kwargs):
def post(self, request, *args, **kwargs):
# context = self.get_context_data(**kwargs)
tempfilename = handle_uploaded_file(request.FILES['uploaded_file'])
# TODO: improve validation function
roottag, xmltree = validate_xml(tempfilename)
if roottag == 'conditions':
import_conditions(xmltree)
Expand Down
1 change: 0 additions & 1 deletion rdmo/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def get(self, request, *args, **kwargs):
def post(self, request, *args, **kwargs):
# context = self.get_context_data(**kwargs)
tempfilename = handle_uploaded_file(request.FILES['uploaded_file'])
# TODO: improve validation function
roottag, xmltree = validate_xml(tempfilename)
if roottag == 'tasks':
import_tasks(xmltree)
Expand Down
1 change: 0 additions & 1 deletion rdmo/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def get(self, request, *args, **kwargs):
def post(self, request, *args, **kwargs):
# context = self.get_context_data(**kwargs)
tempfilename = handle_uploaded_file(request.FILES['uploaded_file'])
# TODO: improve validation function
roottag, xmltree = validate_xml(tempfilename)
if roottag == 'views':
import_views(xmltree)
Expand Down

0 comments on commit 5aed721

Please sign in to comment.