MCPcopy
hub / github.com/anmol098/waka-readme-stats / make_graph

Function make_graph

main.py:150–155  ·  view source on GitHub ↗

Make progress graph from API graph

(percent: float)

Source from the content-addressed store, hash-verified

148
149
150def make_graph(percent: float):
151 '''Make progress graph from API graph'''
152 done_block = '█'
153 empty_block = '░'
154 pc_rnd = round(percent)
155 return f"{done_block * int(pc_rnd / 4)}{empty_block * int(25 - int(pc_rnd / 4))}"
156
157
158def make_list(data: list):

Callers 2

make_listFunction · 0.85
make_commit_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected