Skip to content

Commit 19ea203

Browse files
committed
fix(scores): use the last 50 history items
1 parent 419104d commit 19ea203

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testgen/common/models/scores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def as_cached_score_card(self) -> "ScoreCard":
204204
if self.cde_score:
205205
history_categories.append("cde_score")
206206

207-
for entry in self.history[:50]:
207+
for entry in self.history[-50:]:
208208
if entry.category in history_categories:
209209
score_card["history"].append({"score": entry.score, "category": entry.category, "time": entry.last_run_time})
210210

0 commit comments

Comments
 (0)