Fix top skills history chart hiding skills with zero-level gaps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-22 14:02:39 +02:00
parent 0926eaeb63
commit 0791ff88e9
2 changed files with 65 additions and 10 deletions
+8
View File
@@ -1072,6 +1072,14 @@ def skill_timeline(db_path: Path | str = DEFAULT_DB) -> dict[str, Any]:
if idx is not None:
series[key][idx] = row["level"]
for key in series:
last = 0
for i in range(n):
if series[key][i] > 0:
last = series[key][i]
elif last > 0:
series[key][i] = last
return {"snapshots": snapshots, "series": series}