Spaces:
Running
Running
Update scoring_calculation_system.py
Browse files
scoring_calculation_system.py
CHANGED
@@ -446,7 +446,16 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
446 |
|
447 |
if user_prefs.size_preference != "no_preference":
|
448 |
if breed_info['Size'].lower() != user_prefs.size_preference.lower():
|
449 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
|
451 |
def calculate_space_score(size: str, living_space: str, has_yard: bool, exercise_needs: str) -> float:
|
452 |
"""
|
|
|
446 |
|
447 |
if user_prefs.size_preference != "no_preference":
|
448 |
if breed_info['Size'].lower() != user_prefs.size_preference.lower():
|
449 |
+
return {
|
450 |
+
'space': 0,
|
451 |
+
'exercise': 0,
|
452 |
+
'grooming': 0,
|
453 |
+
'experience': 0,
|
454 |
+
'health': 0,
|
455 |
+
'noise': 0,
|
456 |
+
'overall': 0,
|
457 |
+
'adaptability_bonus': 0
|
458 |
+
}
|
459 |
|
460 |
def calculate_space_score(size: str, living_space: str, has_yard: bool, exercise_needs: str) -> float:
|
461 |
"""
|