Jan Mühlnikel
commited on
Commit
·
806b350
1
Parent(s):
5a0ec90
added filter options to single matching tab
Browse files- similarity_page.py +8 -8
similarity_page.py
CHANGED
|
@@ -309,10 +309,10 @@ def show_single_matching_page():
|
|
| 309 |
|
| 310 |
with col2:
|
| 311 |
# COUNTRY SELECTION
|
| 312 |
-
|
| 313 |
-
'Country / Countries',
|
| 314 |
COUNTRY_OPTION_LIST,
|
| 315 |
-
placeholder="All countries selected"
|
| 316 |
)
|
| 317 |
|
| 318 |
# ORGA SELECTION
|
|
@@ -320,15 +320,15 @@ def show_single_matching_page():
|
|
| 320 |
orga_full_names = projects_df["orga_full_name"].unique()
|
| 321 |
orga_list = [f"{orga_full_names[i]} ({orga_abbreviation[i].upper()})"for i in range(len(orga_abbreviation))]
|
| 322 |
|
| 323 |
-
|
| 324 |
-
'Development Bank / Organization',
|
| 325 |
orga_list,
|
| 326 |
-
placeholder="All organizations selected"
|
| 327 |
)
|
| 328 |
|
| 329 |
with col3:
|
| 330 |
-
|
| 331 |
-
|
| 332 |
|
| 333 |
|
| 334 |
#selected_index = None
|
|
|
|
| 309 |
|
| 310 |
with col2:
|
| 311 |
# COUNTRY SELECTION
|
| 312 |
+
country_option_s = st.multiselect(
|
| 313 |
+
'Country / Countries ',
|
| 314 |
COUNTRY_OPTION_LIST,
|
| 315 |
+
placeholder="All countries selected "
|
| 316 |
)
|
| 317 |
|
| 318 |
# ORGA SELECTION
|
|
|
|
| 320 |
orga_full_names = projects_df["orga_full_name"].unique()
|
| 321 |
orga_list = [f"{orga_full_names[i]} ({orga_abbreviation[i].upper()})"for i in range(len(orga_abbreviation))]
|
| 322 |
|
| 323 |
+
orga_option_s = st.multiselect(
|
| 324 |
+
'Development Bank / Organization ',
|
| 325 |
orga_list,
|
| 326 |
+
placeholder="All organizations selected "
|
| 327 |
)
|
| 328 |
|
| 329 |
with col3:
|
| 330 |
+
different_orga_checkbox_s = st.checkbox("Only matches between different organizations ", value=True)
|
| 331 |
+
filterd_country_only_checkbox_s = st.checkbox("Only matches between filtered countries ", value=True)
|
| 332 |
|
| 333 |
|
| 334 |
#selected_index = None
|