rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

Fix KPI report rows #941

Closed mbarton closed 3 months ago

mbarton commented 3 months ago

Previously we were looking up the rows in the KPI aggregation models by index as we enumerated the related constants. This meant we looked up the wrong row.

Now we simply iterate through the rows themselves and ask Django to do a join to get us the key field we need from the related abstraction level (eg Trust, ICB).

mbarton commented 3 months ago

we mob coded this change so we're happy to merge once CI passes