Skip to content

Commit a43311e

Browse files
committed
fixed margin in generated images
1 parent a0a1d2a commit a43311e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generate_images.py

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ async def generate_languages(s: Stats) -> None:
6565
color = data.get("color")
6666
color = color if color is not None else "#000000"
6767
ratio = [.98, .02]
68+
if data.get("prop", 0) > 50:
69+
ratio = [.99, .01]
6870
if i == len(sorted_languages) - 1:
6971
ratio = [1, 0]
7072
progress += (f'<span style="background-color: {color};'

0 commit comments

Comments
 (0)