Removed the privacy sentence for NGO section

#17
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -106,7 +106,7 @@ def display_google_sheet_tables(data_url):
106
  )
107
 
108
 
109
- def display_dataframe(df, drop_cols, data_url, search_id=True, status=False):
110
  """Display the dataframe in a table"""
111
  col_1, col_2 = st.columns([1, 1])
112
 
@@ -156,9 +156,10 @@ def display_dataframe(df, drop_cols, data_url, search_id=True, status=False):
156
  f"To view the full Google Sheet for advanced filtering go to: {data_url} **لعرض الورقة كاملة، اذهب إلى**"
157
  )
158
  # if we want to check hidden contact information
159
- st.markdown(
160
- f"We are hiding contact information to protect the privacy of the victims. If you are an NGO and want to contact the victims, please contact us at nt3awnoumorocco@gmail.com",
161
- )
 
162
  # arabic needs rtl
163
  st.markdown(
164
  f"""
@@ -270,7 +271,7 @@ drop_cols = [
270
  "GeoAddress",
271
  "Status",
272
  ]
273
- display_dataframe(filtered_df, drop_cols, REQUESTS_URL, search_id=True)
274
 
275
  # Interventions table
276
  st.divider()
@@ -281,6 +282,7 @@ display_dataframe(
281
  INTERVENTIONS_URL,
282
  search_id=False,
283
  status=True,
 
284
  )
285
 
286
  # Submit an id for review
 
106
  )
107
 
108
 
109
+ def display_dataframe(df, drop_cols, data_url, search_id=True, status=False, for_help_requests=False):
110
  """Display the dataframe in a table"""
111
  col_1, col_2 = st.columns([1, 1])
112
 
 
156
  f"To view the full Google Sheet for advanced filtering go to: {data_url} **لعرض الورقة كاملة، اذهب إلى**"
157
  )
158
  # if we want to check hidden contact information
159
+ if for_help_requests:
160
+ st.markdown(
161
+ f"We are hiding contact information to protect the privacy of the victims. If you are an NGO and want to contact the victims, please contact us at nt3awnoumorocco@gmail.com",
162
+ )
163
  # arabic needs rtl
164
  st.markdown(
165
  f"""
 
271
  "GeoAddress",
272
  "Status",
273
  ]
274
+ display_dataframe(filtered_df, drop_cols, REQUESTS_URL, search_id=True, for_help_requests=True)
275
 
276
  # Interventions table
277
  st.divider()
 
282
  INTERVENTIONS_URL,
283
  search_id=False,
284
  status=True,
285
+ for_help_requests=False,
286
  )
287
 
288
  # Submit an id for review