Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -135,7 +135,7 @@ def filter_content(content_list, filters):
|
|
| 135 |
|
| 136 |
# Rating filter
|
| 137 |
if filters['ratings']:
|
| 138 |
-
rating = content.get('rating'
|
| 139 |
# Only compare if rating is a valid string and not a duration
|
| 140 |
if not rating or not isinstance(rating, str) or rating.endswith('min'):
|
| 141 |
matches_all_filters = False
|
|
|
|
| 135 |
|
| 136 |
# Rating filter
|
| 137 |
if filters['ratings']:
|
| 138 |
+
rating = (content.get('rating') or '').strip()
|
| 139 |
# Only compare if rating is a valid string and not a duration
|
| 140 |
if not rating or not isinstance(rating, str) or rating.endswith('min'):
|
| 141 |
matches_all_filters = False
|