Merge pull request #4594 from Neradoc/patch-1

fix removing past releases from circuitpython.org
This commit is contained in:
Scott Shawcroft 2021-04-12 15:46:04 -07:00 committed by GitHub
commit 2a78a5154f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ def generate_download_info():
# Delete the release we are replacing # Delete the release we are replacing
for board in current_info: for board in current_info:
info = current_info[board] info = current_info[board]
for version in info["versions"]: for version in list(info["versions"]):
previous_releases.add(version["version"]) previous_releases.add(version["version"])
previous_languages.update(version["languages"]) previous_languages.update(version["languages"])
if version["stable"] == new_stable or ( if version["stable"] == new_stable or (