fix removing past releases from circuitpython.org

When releasing a new stable, unstable releases would be left in because the past stable was removed.
This commit is contained in:
Neradoc 2021-04-12 23:37:41 +02:00 committed by GitHub
parent c333acdbad
commit b8d55d6dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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