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

fix ngo columns again

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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[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
@@ -168,6 +168,8 @@ def display_dataframe(df, drop_cols, data_url, search_id=True, status=False):
168
  """,
169
  unsafe_allow_html=True,
170
  )
 
 
171
  def id_review_submission():
172
  """Id review submission form"""
173
  st.subheader("🔍 Review of requests")
@@ -275,7 +277,6 @@ st.divider()
275
  st.subheader("📝 **Table of interventions / جدول التدخلات**")
276
  display_dataframe(
277
  interventions_df,
278
- # ["Informations de Contact | Contact Information"],
279
  [], # We show NGOs contact information
280
  INTERVENTIONS_URL,
281
  search_id=False,
 
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
 
168
  """,
169
  unsafe_allow_html=True,
170
  )
171
+
172
+
173
  def id_review_submission():
174
  """Id review submission form"""
175
  st.subheader("🔍 Review of requests")
 
277
  st.subheader("📝 **Table of interventions / جدول التدخلات**")
278
  display_dataframe(
279
  interventions_df,
 
280
  [], # We show NGOs contact information
281
  INTERVENTIONS_URL,
282
  search_id=False,