From 1d3110e3fb2f5404cb1e7d5ed8219fc55eb9e1f0 Mon Sep 17 00:00:00 2001 From: Ahmed Ellaban Date: Mon, 1 Jul 2024 02:39:19 +0300 Subject: [PATCH] changing the colors --- app.py | 4 +- templates/homepage.html | 96 +++++++++++++++++++++++++++++++++++------ 2 files changed, 86 insertions(+), 14 deletions(-) diff --git a/app.py b/app.py index 56ace94..044d364 100644 --- a/app.py +++ b/app.py @@ -39,7 +39,9 @@ def gpa_calculator(): # 3: No changes second_gpa /= 5 total_gpa = (first_gpa + second_gpa) / 2 - return {"items": items, "total_gpa": total_gpa, "second_gpa": second_gpa, "first_gpa": first_gpa} + + return {"items": items, "total_gpa": round(total_gpa, 3), "second_gpa": round(second_gpa, 3), + "first_gpa": round(first_gpa, 3)} @app.route('/') diff --git a/templates/homepage.html b/templates/homepage.html index 79f8817..2a967a7 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -5,17 +5,87 @@ Subjects and Grades