Jan Mühlnikel commited on
Commit
05fcf5b
1 Parent(s): 21f2343

text instead of codes as crs

Browse files
Files changed (1) hide show
  1. similarity_page.py +17 -10
similarity_page.py CHANGED
@@ -298,16 +298,23 @@ def show_single_matching_page():
298
  col1, col2, col3, col4 = st.columns([10, 1, 10, 10])
299
  with col1:
300
  search_option = st.selectbox(
301
- label='Search with project title or IATI ID',
302
- index=0,
303
- options=["Search with IATI ID", "Search with project title"],
304
- )
305
-
306
- if search_option == "Search":
307
- search_query = st.text_input("Enter IATI ID", autocomplete=projects_df["iati_id"].to_list())
308
- else:
309
- search_query = st.text_input("Enter project title", autocomplete=projects_df["title_main"].to_list())
310
-
 
 
 
 
 
 
 
311
 
312
  with col3:
313
  # ORGA SELECTION
 
298
  col1, col2, col3, col4 = st.columns([10, 1, 10, 10])
299
  with col1:
300
  search_option = st.selectbox(
301
+ label = 'Search with project title or IATI ID',
302
+ index = 0,
303
+ placeholder = " ",
304
+ options = ["Search with IATI ID", "Search with project title"],
305
+ )
306
+
307
+ if search_option == "Search with IATI ID":
308
+ search_list = iati_search_list
309
+ else:
310
+ search_list = title_search_list
311
+
312
+ project_option = st.selectbox(
313
+ label = 'Search for a project',
314
+ index = None,
315
+ placeholder = " ",
316
+ options = search_list,
317
+ )
318
 
319
  with col3:
320
  # ORGA SELECTION