Skip to content

Commit 96e0bb7

Browse files
author
ci bot
committed
Merge branch 'fix-truncated-trend' into 'enterprise'
fix(scores): use the last 50 history items See merge request dkinternal/testgen/dataops-testgen!188
2 parents 419104d + 19ea203 commit 96e0bb7

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)