Spaces:
Running
on
Zero
Running
on
Zero
Update recommendation_html_format.py
Browse files
recommendation_html_format.py
CHANGED
|
@@ -161,7 +161,7 @@ def format_recommendation_html(recommendations: List[Dict], is_description_searc
|
|
| 161 |
try:
|
| 162 |
lifespan = info.get('Lifespan', '10-12 years')
|
| 163 |
years = int(lifespan.split('-')[0])
|
| 164 |
-
if years
|
| 165 |
bonus_reasons.append("Above-average lifespan")
|
| 166 |
except:
|
| 167 |
pass
|
|
|
|
| 161 |
try:
|
| 162 |
lifespan = info.get('Lifespan', '10-12 years')
|
| 163 |
years = int(lifespan.split('-')[0])
|
| 164 |
+
if years >= 12:
|
| 165 |
bonus_reasons.append("Above-average lifespan")
|
| 166 |
except:
|
| 167 |
pass
|