fix: Use minus filter for subtraction in liquid template

This commit is contained in:
Paul Gauthier (aider) 2024-12-26 19:54:09 -04:00
parent 07b96bef95
commit ed5b07374d

View file

@ -32,7 +32,7 @@ document.addEventListener('DOMContentLoaded', function () {
},
{
label: 'Lines by human',
data: [{% for row in site.data.blame %}{ x: '{{ row.end_tag }}', y: {{ row.total_lines - row.aider_total }} },{% endfor %}],
data: [{% for row in site.data.blame %}{ x: '{{ row.end_tag }}', y: {{ row.total_lines | minus: row.aider_total }} },{% endfor %}],
backgroundColor: 'rgba(255, 99, 132, 0.8)',
borderColor: 'rgba(255, 99, 132, 1)',
borderWidth: 1