Skip to content

Commit 07f2596

Browse files
committed
added stars on the overview, truncated 'jupyter notebook'
1 parent 5021bb5 commit 07f2596

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "gitfetch"
7-
version = "1.0.8"
7+
version = "1.0.9"
88
description = "A neofetch-style CLI tool for GitHub statistics"
99
readme = "README.md"
1010
requires-python = ">=3.8"

src/gitfetch/display.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ def add_line(label: str, value: str) -> None:
276276

277277
add_line('Company', user_data.get('company'))
278278
add_line('Website', user_data.get('blog'))
279+
# Add stars amount under website
280+
total_stars = stats.get('total_stars')
281+
if total_stars is not None:
282+
add_line('Stars', str(total_stars))
279283

280284
return lines
281285

@@ -310,6 +314,9 @@ def _format_languages(self, stats: Dict[str, Any]) -> list:
310314
)[:5]
311315

312316
for lang, percentage in sorted_langs:
317+
# Reword 'Jupyter notebook' to 'Jupyter'
318+
if lang.lower() == 'jupyter notebook':
319+
lang = 'Jupyter'
313320
lines.append(self._format_language_line(lang, percentage))
314321

315322
return lines

0 commit comments

Comments
 (0)