Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix column ids for ngos form
Browse files
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[
|
56 |
else "Planned ⌛"
|
57 |
)
|
58 |
color_mk = (
|
59 |
"green"
|
60 |
-
if row[interventions_df.columns[
|
61 |
else "pink"
|
62 |
)
|
63 |
-
intervention_type = row[interventions_df.columns[
|
64 |
org = row[interventions_df.columns[1]]
|
65 |
-
city = row[interventions_df.columns[
|
66 |
-
date = row[interventions_df.columns[
|
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
|