Skip to content

Commit

Permalink
Move rapid_response_xblock imports inside functions so dev.provision …
Browse files Browse the repository at this point in the history
…can succeed (#235)
  • Loading branch information
George Schneeloch authored and blarghmatey committed Jun 3, 2021
1 parent f802581 commit 8177c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lms/djangoapps/instructor/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
from xmodule.modulestore.django import modulestore

from .. import permissions
from rapid_response_xblock.utils import get_run_submission_data

from .tools import (
dump_module_extensions,
Expand Down Expand Up @@ -3558,4 +3557,6 @@ def get_rapid_response_report(request, course_id, run_id): # pylint: disable=un
Return csv file corresponding to given run_id
"""
header = ['Date', 'Submitted Answer', 'Username', 'User Email', 'Correct']
from rapid_response_xblock.utils import get_run_submission_data

return _return_csv_response('rapid_response_submissions.csv', header, get_run_submission_data(run_id))
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor/views/instructor_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
from xmodule.modulestore.django import modulestore
from xmodule.tabs import CourseTab

from rapid_response_xblock.utils import get_run_data_for_course

from .tools import get_units_with_due_date, title_or_url
from .. import permissions
Expand Down Expand Up @@ -860,6 +859,7 @@ def is_ecommerce_course(course_key):
def _section_rapid_response(course_key):
"""Provide data for the rapid response dashboard section """

from rapid_response_xblock.utils import get_run_data_for_course
section_data = {
'section_key': 'rapid_response',
'section_display_name': _('Rapid Responses'),
Expand Down

0 comments on commit 8177c54

Please sign in to comment.