From b51151c0e2c0f39bc42db544c3d9871bc4be48b7 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 24 Jun 2024 04:58:01 -0500 Subject: [PATCH] add new arbitrary fields --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index 6716b84..afae99a 100644 --- a/main.py +++ b/main.py @@ -229,7 +229,15 @@ def generate_final_report_data(ws): ["", ""], ["Average Children per Site", ""], [(total_girls + total_boys) / total_sites, ""], + ["", ""], + ["Percentages of Relevant Demographics", ""], + ["Girls", str(total_girls / total_children * 100)[:5] + "%"], + ["Hispanic", str(int(ethnicity_breakdown[0][1]) / total_children * 100)[:5] + "%"], + ["People of Color", str(int(race_breakdown[3][1]) / total_children * 100)[:5] + "%"], ] + print(ethnicity_breakdown) + print("aslkdfjalsdkfjalsdkf") + print(race_breakdown[2]) for row in final_report_data_to_append: ws.append(row)