def export_stats(request, project, subproject):
 subprj = get_subproject(request, project, subproject)
 data = [trans.get_stats() for trans in subprj.translation_set.all()]
 return export_response(request, ('stats-%s-%s.csv' % (subprj.project.slug, subprj.slug)), ('name', 'code', 'total', 'translated', 'translated_percent', 'total_words', 'translated_words', 'failing', 'failing_percent', 'fuzzy', 'fuzzy_percent', 'url_translate', 'url', 'last_change', 'last_author'), data)

def export_stats ( request , project , subproject ) : subprj = get_subproject ( request , project , subproject ) data = [ trans . get_stats ( ) for trans in subprj . translation_set . all ( ) ] return export_response ( request , ( 'stats-%s-%s.csv' % ( subprj . project . slug , subprj . slug ) ) , ( 'name' , 'code' , 'total' , 'translated' , 'translated_percent' , 'total_words' , 'translated_words' , 'failing' , 'failing_percent' , 'fuzzy' , 'fuzzy_percent' , 'url_translate' , 'url' , 'last_change' , 'last_author' ) , data )
exports stats in json format .