From 49e4af4faba42839ba9d4a64abe10f6c8e674267 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 12 Apr 2025 23:32:35 -0700 Subject: [PATCH] fix: Display '?' for zero or rounded-to-zero costs in leaderboards --- aider/website/docs/leaderboards/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/website/docs/leaderboards/index.md b/aider/website/docs/leaderboards/index.md index 670a34005..5f07f4ef9 100644 --- a/aider/website/docs/leaderboards/index.md +++ b/aider/website/docs/leaderboards/index.md @@ -67,7 +67,8 @@ The model also has to successfully apply all its changes to the source file with {% if row.total_cost > 0 %}
{% endif %} - {% if row.total_cost == 0 %}?{% else %}${{ row.total_cost | times: 1.0 | round: 2 }}{% endif %} + {% assign rounded_cost = row.total_cost | times: 1.0 | round: 2 %} + {% if row.total_cost == 0 or rounded_cost == 0.00 %}?{% else %}${{ rounded_cost }}{% endif %} {{ row.command }} {{ row.edit_format }}