Skip to content

Commit

Permalink
str
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 15, 2023
1 parent bb413b8 commit 47e1a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/find-unused-caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def main(repository: str, token: str, age_days: float = 7, output_file: str = "u
caches = fetch_all_caches(repository, token)

delta_days = timedelta(days=age_days)
old_caches = [cache["id"] for cache in caches if cache["last_used_days"] > delta_days]
old_caches = [str(cache["id"]) for cache in caches if cache["last_used_days"] > delta_days]
print(f"found {len(old_caches)} old caches:\n {old_caches}")

with open(output_file, "w", encoding="utf8") as fw:
Expand Down

0 comments on commit 47e1a60

Please sign in to comment.