loubnabnl HF staff commited on
Commit
0486a4d
1 Parent(s): e95cc4e

fix column ids for ngos form

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -52,18 +52,18 @@ def display_interventions(interventions_df, m):
52
  for index, row in interventions_df.iterrows():
53
  status = (
54
  "Done ✅"
55
- if row[interventions_df.columns[5]] != "Intervention prévue dans le futur / Planned future intervention"
56
  else "Planned ⌛"
57
  )
58
  color_mk = (
59
  "green"
60
- if row[interventions_df.columns[5]] != "Intervention prévue dans le futur / Planned future intervention"
61
  else "pink"
62
  )
63
- intervention_type = row[interventions_df.columns[6]].split("/")[0].strip()
64
  org = row[interventions_df.columns[1]]
65
- city = row[interventions_df.columns[9]]
66
- date = row[interventions_df.columns[4]]
67
  intervention_info = f"<b>Status:</b> {status}<br><b>Org:</b> {org}<br><b>Intervention:</b> {intervention_type}<br><b>📅 Date:</b> {date}"
68
  if row["latlng"] is None:
69
  continue
 
52
  for index, row in interventions_df.iterrows():
53
  status = (
54
  "Done ✅"
55
+ if row[interventions_df.columns[6]] != "Intervention prévue dans le futur / Planned future intervention"
56
  else "Planned ⌛"
57
  )
58
  color_mk = (
59
  "green"
60
+ if row[interventions_df.columns[6]] != "Intervention prévue dans le futur / Planned future intervention"
61
  else "pink"
62
  )
63
+ intervention_type = row[interventions_df.columns[7]].split("/")[0].strip()
64
  org = row[interventions_df.columns[1]]
65
+ city = row[interventions_df.columns[10]]
66
+ date = row[interventions_df.columns[5]]
67
  intervention_info = f"<b>Status:</b> {status}<br><b>Org:</b> {org}<br><b>Intervention:</b> {intervention_type}<br><b>📅 Date:</b> {date}"
68
  if row["latlng"] is None:
69
  continue