From 5c0bb6066328b18f915c391d4a0c37d6c6fe58f3 Mon Sep 17 00:00:00 2001 From: Vignesh Hari Date: Sun, 25 Oct 2020 10:22:18 +0530 Subject: [PATCH] Fixed Dashboard Bug --- care/facility/summarisation/facility_capacity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/care/facility/summarisation/facility_capacity.py b/care/facility/summarisation/facility_capacity.py index d22ee10b8f..d482307661 100644 --- a/care/facility/summarisation/facility_capacity.py +++ b/care/facility/summarisation/facility_capacity.py @@ -80,6 +80,7 @@ def FacilityCapacitySummary(): capacity_summary[facility_obj.id]["actual_live_patients"] = patients_in_facility.filter(is_active=True).count() discharge_patients = patients_in_facility.filter(is_active=False) capacity_summary[facility_obj.id]["actual_discharged_patients"] = discharge_patients.count() + capacity_summary[facility_obj.id]["availability"] = [] for capacity_object in capacity_objects: facility_id = capacity_object.facility.id