DawnC commited on
Commit
f37b588
1 Parent(s): 3d680c7

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. scoring_calculation_system.py +3 -3
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
- final_score *= 0.7 # 大型犬在公寓環境下的顯著懲罰
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