Remove unused write_releases method

This method is unused now that all scripts are using the Product class.
This commit is contained in:
Marc Wrobel
2023-12-15 13:56:23 +01:00
parent ca8fd44143
commit 6453bca256

View File

@@ -144,11 +144,3 @@ def list_products(method, products_filter=None) -> dict[str, list[dict]]:
products_with_method[product_name] = configs
return products_with_method
def write_releases(product, releases, pathname="releases") -> None:
with open(f"{pathname}/{product}.json", "w") as f:
f.write(json.dumps(dict(
# sort by date then version (desc)
sorted(releases.items(), key=lambda x: (x[1], x[0]), reverse=True)
), indent=2))