Skip to content

Commit 6bdf304

Browse files
authored
Merge pull request #58 from sommersoft/slide_to_the_left
Small Updates To DL Stats
2 parents 2d3fb0e + e88475f commit 6bdf304

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adabot/circuitpython_library_download_stats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ def run_stat_check():
142142

143143
pypi_downloads = {}
144144
pypi_failures = []
145-
downloads_list = [["| Repo", "| Last Week", "| Total |"],
146-
["| ----", "|:--------:", "|:-----:|"]]
147-
output_handler("Adafruit CircuitPython Library PyPi downloads: ")
145+
downloads_list = [["| Library", "| Last Week", "| Total |"],
146+
["|:-------", "|:--------:", "|:-----:|"]]
147+
output_handler("Adafruit CircuitPython Library PyPi downloads:")
148148
output_handler()
149149
pypi_downloads, pypi_failures = get_pypi_stats()
150150
for stat in sorted(pypi_downloads.items(), key=operator.itemgetter(1,1), reverse=True):
151-
downloads_list.append(["| " + str(stat[0]), " | " + str(stat[1][0]), " | " + str(stat[1][1]) +" |"])
151+
downloads_list.append(["| " + str(stat[0]), "| " + str(stat[1][0]), "| " + str(stat[1][1]) +" |"])
152152

153153
long_col = [(max([len(str(row[i])) for row in downloads_list]) + 3)
154154
for i in range(len(downloads_list[0]))]

0 commit comments

Comments
 (0)