Skip to content

Commit

Permalink
Merge pull request #49 from unicef-drp/Dashboard_enhancements
Browse files Browse the repository at this point in the history
Added < sign for HIV cards
  • Loading branch information
Amy-Reidy authored Jan 9, 2024
2 parents 31b71d6 + d07d127 commit a4013eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dash_service/pages/transmonee.py
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,10 @@ def indicator_card(
)
indicator_header = sum_format.format(indicator_sum)

if base_indicator in ['HVA_EPI_LHIV_0-19', 'HVA_EPI_INF_RT_0-14', 'HVA_PED_ART_CVG', 'HVA_PMTCT_STAT_CVG', 'HVA_EPI_DTH_ANN_0-19']:
# add less than sign for HIV indicators
indicator_header = f"<{indicator_header}"

if base_indicator == 'PP_SG_NHR_STATUS':
status_mapping = {1: "A status", 2: "B status", 3: "C status", 4: "D status"}
# Map the OBS_VALUE to the corresponding status
Expand Down

0 comments on commit a4013eb

Please sign in to comment.