Skip to content

Commit d9b4243

Browse files
jawad-khanfeanil
authored andcommitted
chore: Removed depecated list_financial_report_downloads
1 parent 463c876 commit d9b4243

File tree

1 file changed

+0
-21
lines changed
  • lms/djangoapps/instructor/views

1 file changed

+0
-21
lines changed

lms/djangoapps/instructor/views/api.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,27 +2913,6 @@ def _list_report_downloads(request, course_id):
29132913
return JsonResponse(response_payload)
29142914

29152915

2916-
@require_POST
2917-
@ensure_csrf_cookie
2918-
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
2919-
@require_course_permission(permissions.CAN_RESEARCH)
2920-
@require_finance_admin
2921-
def list_financial_report_downloads(_request, course_id):
2922-
"""
2923-
List grade CSV files that are available for download for this course.
2924-
"""
2925-
course_id = CourseKey.from_string(course_id)
2926-
report_store = ReportStore.from_config(config_name='FINANCIAL_REPORTS')
2927-
2928-
response_payload = {
2929-
'downloads': [
2930-
dict(name=name, url=url, link=HTML('<a href="{}">{}</a>').format(HTML(url), Text(name)))
2931-
for name, url in report_store.links_for(course_id)
2932-
]
2933-
}
2934-
return JsonResponse(response_payload)
2935-
2936-
29372916
@method_decorator(transaction.non_atomic_requests, name='dispatch')
29382917
class ExportOra2DataView(DeveloperErrorViewMixin, APIView):
29392918
"""

0 commit comments

Comments
 (0)