Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Dec 23, 2024
1 parent 630df20 commit fe1c02f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/scripts/packages_yml_get_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}")
Expand Down

0 comments on commit fe1c02f

Please sign in to comment.