def get(self, request, *args, **kwargs): template = get_template('hasil_akhir/report_rangking.html') sw = Siswa.objects.all() nl = helpers.Hasil_akhir(sw).as_matrix() data = { 'nl' : nl, } html = template.render(data) pdf = helpers.render_to_pdf('hasil_akhir/report_rangking.html', data) return HttpResponse(pdf, content_type='application/pdf')
def get(self, request, *args, **kwargs): template = get_template('report/kimia/report_rangking.html') na = NilaiAkademik.objects.all().filter(mata_pelajaran="kimia") nl = helperskim.Hasil_AkhirKim(na).as_matrix() data = { 'nl': nl, } html = template.render(data) pdf = helpers.render_to_pdf('report/kimia/report_rangking.html', data) return HttpResponse(pdf, content_type='application/pdf')
def get(self, request, *args, **kwargs): template = get_template('report/biologi/reportnilai_awal.html') na = NilaiAkademik.objects.all().filter(mata_pelajaran="biologi") nl = helpersbio.Matrix_DataAwalBio(na).as_matrix() data = { 'nl': nl, } html = template.render(data) pdf = helpers.render_to_pdf('report/biologi/reportnilai_awal.html', data) return HttpResponse(pdf, content_type='application/pdf')
def get(self, request, *args, **kwargs): template = get_template('report/matematika/report_pembobotan.html') na = NilaiAkademik.objects.all().filter(mata_pelajaran="matematika") nl = helpersmat.Matrix_PembobotanMat(na).as_matrix() data = { 'nl': nl, } html = template.render(data) pdf = helpers.render_to_pdf('report/matematika/report_pembobotan.html', data) return HttpResponse(pdf, content_type='application/pdf')