Commit 8ccc27b4 by Alison Hodges

fix pep8 violations

parent 74102861
......@@ -1107,13 +1107,15 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=red
else:
try:
instructor_task.api.submit_calculate_students_features_csv(request, course_key, query_features)
success_status = _("Your enrolled student profile report is being generated!" \
" You can view the status of the generation task in the 'Pending Tasks' section.")
success_status = _(
"Your enrolled student profile report is being generated! "
"You can view the status of the generation task in the 'Pending Tasks' section.")
return JsonResponse({"status": success_status})
except AlreadyRunningError:
already_running_status = _("An enrolled student profile report generation task is already in progress." \
" Check the 'Pending Tasks' table for the status of the task. When completed," \
" the report will be available for download in the table below.")
already_running_status = _(
"An enrolled student profile report generation task is already in progress. "
"Check the 'Pending Tasks' table for the status of the task. When completed, "
"the report will be available for download in the table below.")
return JsonResponse({"status": already_running_status})
......@@ -1232,11 +1234,13 @@ def get_enrollment_report(request, course_id):
course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
try:
instructor_task.api.submit_detailed_enrollment_features_csv(request, course_key)
success_status = _("Your detailed enrollment report is being generated! "
success_status = _(
"Your detailed enrollment report is being generated! "
"You can view the status of the generation task in the 'Pending Tasks' section.")
return JsonResponse({"status": success_status})
except AlreadyRunningError:
already_running_status = _("A detailed enrollment report generation task is already in progress. "
already_running_status = _(
"A detailed enrollment report generation task is already in progress. "
"Check the 'Pending Tasks' table for the status of the task. "
"When completed, the report will be available for download in the table below.")
return JsonResponse({
......@@ -1255,7 +1259,8 @@ def get_exec_summary_report(request, course_id):
course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
try:
instructor_task.api.submit_executive_summary_report(request, course_key)
status_response = _("Your executive summary report is being created. "
status_response = _(
"Your executive summary report is being created. "
"To view the status of the report, see the 'Pending Tasks' section.")
except AlreadyRunningError:
status_response = _(
......@@ -2136,11 +2141,13 @@ def calculate_grades_csv(request, course_id):
course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
try:
instructor_task.api.submit_calculate_grades_csv(request, course_key)
success_status = _("Your grade report is being generated! "
success_status = _(
"Your grade report is being generated! "
"You can view the status of the generation task in the 'Pending Tasks' section.")
return JsonResponse({"status": success_status})
except AlreadyRunningError:
already_running_status = _("A grade report generation task is already in progress. "
already_running_status = _(
"A grade report generation task is already in progress. "
"Check the 'Pending Tasks' table for the status of the task. "
"When completed, the report will be available for download in the table below.")
return JsonResponse({
......@@ -2162,11 +2169,13 @@ def problem_grade_report(request, course_id):
course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
try:
instructor_task.api.submit_problem_grade_report(request, course_key)
success_status = _("Your problem grade report is being generated! "
success_status = _(
"Your problem grade report is being generated! "
"You can view the status of the generation task in the 'Pending Tasks' section.")
return JsonResponse({"status": success_status})
except AlreadyRunningError:
already_running_status = _("A problem grade report is already being generated. "
already_running_status = _(
"A problem grade report is already being generated. "
"Check the 'Pending Tasks' table for the status of the task. "
"When completed, the report will be available for download in the table below.")
return JsonResponse({
......
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