DawnC commited on
Commit
244a6a9
1 Parent(s): 0bf9b1a

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. scoring_calculation_system.py +10 -1
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 None
 
 
 
 
 
 
 
 
 
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
  """