Syntrex commited on
Commit
f762454
·
verified ·
1 Parent(s): aee057f

Update analytics/recommendation_engine.py

Browse files
Files changed (1) hide show
  1. analytics/recommendation_engine.py +10 -1
analytics/recommendation_engine.py CHANGED
@@ -16,6 +16,7 @@ def build_upcoming_hitter_recommendations(
16
  """
17
  Decision-layer wrapper.
18
  Uses simulated fair rows, then adds confidence + recommendation tier.
 
19
  """
20
  rows = build_upcoming_simulated_rows(
21
  game_row=game_row,
@@ -43,4 +44,12 @@ def build_upcoming_hitter_recommendations(
43
  reverse=True,
44
  )
45
 
46
- return recommendations
 
 
 
 
 
 
 
 
 
16
  """
17
  Decision-layer wrapper.
18
  Uses simulated fair rows, then adds confidence + recommendation tier.
19
+ Suppresses low-value PASS rows unless nothing else exists.
20
  """
21
  rows = build_upcoming_simulated_rows(
22
  game_row=game_row,
 
44
  reverse=True,
45
  )
46
 
47
+ surfaced = [
48
+ row for row in recommendations
49
+ if str(row.get("recommendation_tier", "")).lower() in {"bet", "watch"}
50
+ ]
51
+
52
+ if surfaced:
53
+ return surfaced
54
+
55
+ return recommendations[:1]