nouamanetazi HF staff commited on
Commit
a49ed6f
1 Parent(s): 549a2cc

fix markups

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -119,9 +119,9 @@ headers_mapping = {
119
  colors_mapping = {
120
  "إغاثة": "red",
121
  "مساعدة طبية": "orange",
122
- "مأوى": "yellow",
123
  "طعام وماء": "blue",
124
- "مخاطر (تسرب الغاز، تلف في الخدمات العامة...)": "grey",
125
  }
126
  icon_mapping = {
127
  "إغاثة": "bell", # life ring icon for rescue
@@ -165,8 +165,8 @@ m = folium.Map(
165
 
166
  if show_interventions:
167
  for index, row in interventions_df.iterrows():
168
- status = "Done ✅" if row[interventions_df.columns[5]]=="Intervention prévue dans le futur / Planned future intervention" else "Planned ⌛"
169
- color_mk = "green" if row[interventions_df.columns[5]]=="Intervention prévue dans le futur / Planned future intervention" else "pink"
170
  intervention_type = row[interventions_df.columns[6]].split("/")[0].strip()
171
  org = row[interventions_df.columns[1]]
172
  city = row[interventions_df.columns[9]]
 
119
  colors_mapping = {
120
  "إغاثة": "red",
121
  "مساعدة طبية": "orange",
122
+ "مأوى": "beige",
123
  "طعام وماء": "blue",
124
+ "مخاطر (تسرب الغاز، تلف في الخدمات العامة...)": "gray",
125
  }
126
  icon_mapping = {
127
  "إغاثة": "bell", # life ring icon for rescue
 
165
 
166
  if show_interventions:
167
  for index, row in interventions_df.iterrows():
168
+ status = "Done ✅" if row[interventions_df.columns[5]]!="Intervention prévue dans le futur / Planned future intervention" else "Planned ⌛"
169
+ color_mk = "green" if row[interventions_df.columns[5]]!="Intervention prévue dans le futur / Planned future intervention" else "pink"
170
  intervention_type = row[interventions_df.columns[6]].split("/")[0].strip()
171
  org = row[interventions_df.columns[1]]
172
  city = row[interventions_df.columns[9]]