def export_stats_project(request, project):
 obj = get_project(request, project)
 data = get_project_stats(obj)
 return export_response(request, ('stats-%s.csv' % obj.slug), ('language', 'code', 'total', 'translated', 'translated_percent', 'total_words', 'translated_words', 'words_percent'), data)

def export_stats_project ( request , project ) : obj = get_project ( request , project ) data = get_project_stats ( obj ) return export_response ( request , ( 'stats-%s.csv' % obj . slug ) , ( 'language' , 'code' , 'total' , 'translated' , 'translated_percent' , 'total_words' , 'translated_words' , 'words_percent' ) , data )
exports stats in json format .