Skip to content

Commit 7f3c4cc

Browse files
committed
removed hard coded values for text
1 parent 9ba4809 commit 7f3c4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gitfetch/display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,8 @@ def _generate_weeks_from_text_grid(self, text_grid: list) -> list:
14011401
for row_idx in range(7):
14021402
# row_idx 0 -> Sunday, row_idx 6 -> Saturday
14031403
intensity = text_grid[row_idx][col_idx]
1404-
# For --text mode, force all nonzero cells to level 3 (dark green)
1405-
count = 3 if intensity > 0 else 0
1404+
# Use intensity directly (0-4 matches color mapping)
1405+
count = intensity
14061406
# Use a fake date that increments per column for readability
14071407
week_days.append({
14081408
'contributionCount': count,

0 commit comments

Comments
 (0)