Spaces:
Running
on
Zero
Running
on
Zero
Update scoring_calculation_system.py
Browse files
scoring_calculation_system.py
CHANGED
|
@@ -1282,9 +1282,9 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
| 1282 |
adaptability_bonus = calculate_environmental_fit(breed_info, user_prefs)
|
| 1283 |
|
| 1284 |
|
| 1285 |
-
|
| 1286 |
-
if user_prefs.living_space == "apartment" and breed_info['Size'] in ["Giant", "Large"]:
|
| 1287 |
-
|
| 1288 |
|
| 1289 |
if (breed_info.get('Exercise Needs') == "Very High" and
|
| 1290 |
user_prefs.living_space == "apartment" and
|
|
|
|
| 1282 |
adaptability_bonus = calculate_environmental_fit(breed_info, user_prefs)
|
| 1283 |
|
| 1284 |
|
| 1285 |
+
|
| 1286 |
+
# if user_prefs.living_space == "apartment" and breed_info['Size'] in ["Giant", "Large"]:
|
| 1287 |
+
# final_score *= 0.7 # 大型犬在公寓環境下的顯著懲罰
|
| 1288 |
|
| 1289 |
if (breed_info.get('Exercise Needs') == "Very High" and
|
| 1290 |
user_prefs.living_space == "apartment" and
|