From 631e814d648ed49b3c60e7d6bb46b7523cbdd3db Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Mon, 20 Apr 2026 16:14:40 +0200 Subject: [PATCH] fix: load all year shards into combined feed, not just top 2 --- bincio/render/merge.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bincio/render/merge.py b/bincio/render/merge.py index 86e57ec..2386791 100644 --- a/bincio/render/merge.py +++ b/bincio/render/merge.py @@ -354,13 +354,9 @@ def write_combined_feed(data_dir: Path) -> int: activities = index.get("activities", []) if shards: - year_shards = sorted( - [s for s in shards if re.match(r"index-\d{4}\.json$", s.get("url", ""))], - key=lambda s: s["url"], - reverse=True, - ) + year_shards = [s for s in shards if re.match(r"index-\d{4}\.json$", s.get("url", ""))] base = index_path.parent - for shard in year_shards[:2]: + for shard in year_shards: shard_path = base / shard["url"] if shard_path.exists(): shard_data = json.loads(shard_path.read_text(encoding="utf-8"))