From 10d7ec5e0380a197877aa529ba3b59de03b0e50d Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 28 Apr 2025 21:33:33 -0400 Subject: [PATCH] Account for overtime in sports reports --- custom_templates/sports.jinja | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_templates/sports.jinja b/custom_templates/sports.jinja index 2cf4309..a43e32e 100644 --- a/custom_templates/sports.jinja +++ b/custom_templates/sports.jinja @@ -32,9 +32,11 @@ {% else %} {% if ' - ' in game_clock %} {% set clock_time, quarter = game_clock.split(' - ') %} - with {{ clock_time ~ ' remaining in the ' ~ quarter ~ ' ' ~ period_str }} - {% else %} - with {{ game_clock ~ ' remaining in the ' ~ period_str }} + {% if quarter == 'ot' %} + with {{ clock_time ~ ' remaining in overtime' }} + {% else %} + with {{ clock_time ~ ' remaining in the ' ~ quarter ~ ' ' ~ period_str }} + {% endif %} {% endif %} {% endif %} {% endmacro %}