DawnC commited on
Commit
d47f418
1 Parent(s): fef83b7

Update search_history.py

Browse files
Files changed (1) hide show
  1. search_history.py +1 -1
search_history.py CHANGED
@@ -151,7 +151,7 @@ class SearchHistoryComponent:
151
  if isinstance(result, dict):
152
  processed_result = {
153
  'breed': result.get('breed', 'Unknown'),
154
- 'overall_score': result.get('final_score', 0), # 使用 final_score 作為 overall_score
155
  'rank': result.get('rank', 0),
156
  'base_score': result.get('base_score', 0),
157
  'bonus_score': result.get('bonus_score', 0),
 
151
  if isinstance(result, dict):
152
  processed_result = {
153
  'breed': result.get('breed', 'Unknown'),
154
+ 'overall_score': result.get('overall_score', result.get('final_score', 0)),
155
  'rank': result.get('rank', 0),
156
  'base_score': result.get('base_score', 0),
157
  'bonus_score': result.get('bonus_score', 0),