Hidayatmahar commited on
Commit
234fd98
·
verified ·
1 Parent(s): d8518c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ def generate_pdf(name, roll_no, nic_number, father_name, form_number, scores):
27
  # Test Scores
28
  pdf.set_font("Arial", style='B', size=14)
29
  for subject, score in scores.items():
30
- pdf.cell(200, 10, f"{subject} Section Score: {score} out of 120", ln=True)
31
 
32
  total_score = sum(scores.values())
33
- pdf.cell(200, 10, f"Total Score: {total_score} out of 480", ln=True)
34
 
35
  # Save PDF
36
  pdf_path = "test_result.pdf"
 
27
  # Test Scores
28
  pdf.set_font("Arial", style='B', size=14)
29
  for subject, score in scores.items():
30
+ pdf.cell(200, 10, f"{subject} Section Score: {score} out of 100", ln=True)
31
 
32
  total_score = sum(scores.values())
33
+ pdf.cell(200, 10, f"Total Score: {total_score} out of 400", ln=True)
34
 
35
  # Save PDF
36
  pdf_path = "test_result.pdf"