Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -815,7 +815,7 @@ def side():
|
|
| 815 |
|
| 816 |
|
| 817 |
st.sidebar.markdown("</div>", unsafe_allow_html=True)
|
| 818 |
-
trust_buckets = ["Stability", "Development", "Relationship", "Benefit", "Vision", "Competence"]
|
| 819 |
|
| 820 |
|
| 821 |
|
|
@@ -880,7 +880,7 @@ def side():
|
|
| 880 |
results = []
|
| 881 |
for tb in trustbuilders:
|
| 882 |
bucket, text = tb.split(": ", 1) if ": " in tb else ("", tb)
|
| 883 |
-
if (selected_bucket == "
|
| 884 |
results.append(tb)
|
| 885 |
|
| 886 |
if results:
|
|
|
|
| 815 |
|
| 816 |
|
| 817 |
st.sidebar.markdown("</div>", unsafe_allow_html=True)
|
| 818 |
+
trust_buckets = ["Any","Stability", "Development", "Relationship", "Benefit", "Vision", "Competence"]
|
| 819 |
|
| 820 |
|
| 821 |
|
|
|
|
| 880 |
results = []
|
| 881 |
for tb in trustbuilders:
|
| 882 |
bucket, text = tb.split(": ", 1) if ": " in tb else ("", tb)
|
| 883 |
+
if (selected_bucket == "Any" or bucket == selected_bucket) and (not search_query or search_query.lower() in text.lower()):
|
| 884 |
results.append(tb)
|
| 885 |
|
| 886 |
if results:
|