Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Start writing releases4 instead of releases3
Browse files Browse the repository at this point in the history
  • Loading branch information
igboyes committed Oct 13, 2020
1 parent 054b233 commit cbca347
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@


MIN_VERSIONS = [
("virtool", "3.0.0"),
("virtool", "4.0.0"),
("ref-plant-viruses", "1.0.0"),
("virtool-hmm", "0.2.0")
]

RELEASE_FILE_NUMBER = 4

RELEASE_KEYS = [
"name",
"body",
Expand Down Expand Up @@ -116,8 +118,8 @@ def get_release_data(username, token):
"releases": releases
}

with open("data/releases3.json", "w") as f:
with open(f"data/releases{RELEASE_FILE_NUMBER}.json", "w") as f:
json.dump(data, f, indent=4)

with open("static/releases3", "w") as f:
with open(f"static/releases{RELEASE_FILE_NUMBER}", "w") as f:
json.dump({key: data[key]["releases"] for key in data}, f)

0 comments on commit cbca347

Please sign in to comment.