@require_POST
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
@require_finance_admin
def list_financial_report_downloads(_request, course_id):
 course_id = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 report_store = ReportStore.from_config(config_name='FINANCIAL_REPORTS')
 response_payload = {'downloads': [dict(name=name, url=url, link=HTML('<a href="{}">{}</a>').format(HTML(url), Text(name))) for (name, url) in report_store.links_for(course_id)]}
 return JsonResponse(response_payload)

@ require_POST @ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) @ require_finance_admin def list_financial_report_downloads ( _request , course_id ) : course_id = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) report_store = ReportStore . from_config ( config_name = 'FINANCIAL_REPORTS' ) response_payload = { 'downloads' : [ dict ( name = name , url = url , link = HTML ( '<a href="{}">{}</a>' ) . format ( HTML ( url ) , Text ( name ) ) ) for ( name , url ) in report_store . links_for ( course_id ) ] } return JsonResponse ( response_payload )
list grade csv files that are available for download for this course .