DawnC commited on
Commit
c648d0c
1 Parent(s): 631b8a1

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. scoring_calculation_system.py +5 -5
scoring_calculation_system.py CHANGED
@@ -7,20 +7,20 @@ class UserPreferences:
7
 
8
  """使用者偏好設定的資料結構"""
9
  living_space: str # "apartment", "house_small", "house_large"
 
10
  exercise_time: int # minutes per day
 
11
  grooming_commitment: str # "low", "medium", "high"
12
  experience_level: str # "beginner", "intermediate", "advanced"
 
13
  has_children: bool
 
14
  noise_tolerance: str # "low", "medium", "high"
15
  space_for_play: bool
16
  other_pets: bool
17
  climate: str # "cold", "moderate", "hot"
18
- health_sensitivity: str = "medium"
19
  barking_acceptance: str = None
20
- time_away: str = "moderate" # 離家時間,影響某些品種的適合度
21
- physical_activity: str = "moderate" # 活動類型,影響運動需求匹配
22
- training_commitment: str = "moderate" # 訓練投入,影響經驗需求
23
- children_age: str = None
24
 
25
  def __post_init__(self):
26
  """在初始化後運行,用於設置派生值"""
 
7
 
8
  """使用者偏好設定的資料結構"""
9
  living_space: str # "apartment", "house_small", "house_large"
10
+ yard_access: str # "no_yard", "shared_yard", "private_yard"
11
  exercise_time: int # minutes per day
12
+ exercise_type: str # "light_walks", "moderate_activity", "active_training"
13
  grooming_commitment: str # "low", "medium", "high"
14
  experience_level: str # "beginner", "intermediate", "advanced"
15
+ time_availability: str # "limited", "moderate", "flexible"
16
  has_children: bool
17
+ children_age: str # "toddler", "school_age", "teenager"
18
  noise_tolerance: str # "low", "medium", "high"
19
  space_for_play: bool
20
  other_pets: bool
21
  climate: str # "cold", "moderate", "hot"
22
+ health_sensitivity: str = "medium"
23
  barking_acceptance: str = None
 
 
 
 
24
 
25
  def __post_init__(self):
26
  """在初始化後運行,用於設置派生值"""