Fix board info script to skip removed boards.

This commit is contained in:
Scott Shawcroft 2019-01-24 10:22:14 -08:00
parent de628ac963
commit d30bdd4cb3
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
1 changed files with 4 additions and 1 deletions

View File

@ -162,7 +162,10 @@ def update_downloads(boards, release):
assets = response.json()["assets"]
for asset in assets:
boards[asset["name"].split("-")[2]]["download_count"] += asset["download_count"]
board_name = asset["name"].split("-")[2]
if board_name not in boards:
continue
boards[board_name]["download_count"] += asset["download_count"]
def print_active_user():