Skip to content

Commit

Permalink
Resolved Display Issues for Oxygen Cylinder Capacity in Facility Expo…
Browse files Browse the repository at this point in the history
…rts (#1732)

Export oxygen capacity only for  FacilityCapacity
  • Loading branch information
Ashesh3 authored Dec 7, 2023
1 parent 5563b48 commit 19d414f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions care/facility/models/facility.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,7 @@ def save(self, *args, **kwargs) -> None:
"local_body__name": "Local Body",
"district__name": "District",
"state__name": "State",
"oxygen_capacity": "Oxygen Capacity",
"phone_number": "Phone Number",
"type_b_cylinders": "B Type Oxygen Cylinder",
"type_c_cylinders": "C Type Oxygen Cylinder",
"type_d_cylinders": "Jumbo D Type Oxygen Cylinder",
}

CSV_MAKE_PRETTY = {"facility_type": (lambda x: REVERSE_FACILITY_TYPES[x])}
Expand Down Expand Up @@ -316,6 +312,10 @@ class Meta:
"facilitycapacity__total_capacity": "Total Capacity",
"facilitycapacity__current_capacity": "Current Capacity",
"facilitycapacity__modified_date": "Updated Date",
"oxygen_capacity": "Oxygen Capacity",
"type_b_cylinders": "B Type Oxygen Cylinder",
"type_c_cylinders": "C Type Oxygen Cylinder",
"type_d_cylinders": "Jumbo D Type Oxygen Cylinder",
}

CSV_MAKE_PRETTY = {
Expand Down

0 comments on commit 19d414f

Please sign in to comment.