Commit b4c80da2 by Vik Paruchuri

Trim whitespace

parent 8e9ec501
......@@ -25,6 +25,8 @@ import open_ended_notifications
from xmodule.modulestore.django import modulestore
from xmodule.modulestore import search
from django.http import HttpResponse, Http404
log = logging.getLogger(__name__)
template_imports = {'urllib': urllib}
......@@ -306,7 +308,9 @@ def take_action_on_flags(request, course_id):
submission_id = p['submission_id']
action_type = p['action_type']
student_id = p['student_id']
student_id = student_id.strip(' \t\n\r')
submission_id = submission_id.strip(' \t\n\r')
action_type = action_type.lower().strip(' \t\n\r')
try:
response = controller_qs.take_action_on_flags(course_id, student_id, submission_id, action_type)
return HttpResponse(response, mimetype="application/json")
......
......@@ -29,7 +29,6 @@ class OpenEnded
action_type = "ban"
submission_id = tr_children[4].innerText
student_id = tr_children[5].innerText
@gentle_alert student_id
@post('take_action_on_flags', {'submission_id' : submission_id, 'student_id' : student_id, 'action_type' : action_type}, @handle_after_action)
post: (cmd, data, callback) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment