From fe1c02ff840d8753a69e67b2c0cf6514af5e5efc Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Mon, 23 Dec 2024 15:53:45 -0500 Subject: [PATCH] x --- docs/scripts/packages_yml_get_downloads.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/scripts/packages_yml_get_downloads.py b/docs/scripts/packages_yml_get_downloads.py index 548f61894864b..07525194b39c5 100644 --- a/docs/scripts/packages_yml_get_downloads.py +++ b/docs/scripts/packages_yml_get_downloads.py @@ -50,7 +50,11 @@ def _reorder_keys(p): raise ValueError(f"Duplicate package: {p['name']}") seen.add(p["name"]) downloads_updated_at_str = p.get("downloads_updated_at") - downloads_updated_at = datetime.fromisoformat(downloads_updated_at_str) if downloads_updated_at_str else None + downloads_updated_at = ( + datetime.fromisoformat(downloads_updated_at_str) + if downloads_updated_at_str + else None + ) if downloads_updated_at is not None and downloads_updated_at > yesterday: print(f"done: {p['name']}: {p['downloads']}")