Skip to content

Commit

Permalink
refactor mroe
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Oct 30, 2024
1 parent 3a4d591 commit e033803
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lms/djangoapps/instructor/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2458,10 +2458,8 @@ def _list_instructor_tasks(request, course_id, serialize_data=None):
# Specifying for single problem's history
tasks = task_api.get_instructor_task_history(course_id, module_state_key)
elif include_canvas:
from ol_openedx_canvas_integration.constants import CANVAS_TASK_TYPES # pylint: disable=import-error
from ol_openedx_canvas_integration.task_helpers import _get_filtered_instructor_tasks

tasks = _get_filtered_instructor_tasks(course_id, request.user, CANVAS_TASK_TYPES)
from ol_openedx_canvas_integration.task_helpers import get_filtered_instructor_tasks
tasks = get_filtered_instructor_tasks(course_id, request.user)
else:
# If no problem or student, just get currently running tasks
tasks = task_api.get_running_instructor_tasks(course_id)
Expand Down

0 comments on commit e033803

Please sign in to comment.