Lower-case format period_str

This commit is contained in:
2025-04-16 14:35:14 -04:00
parent ef548c2df1
commit 002919483f

View File

@ -25,7 +25,7 @@
{% macro sports_clock(team) %} {% macro sports_clock(team) %}
{% macro data() %} {% macro data() %}
{% set period_str = period_str(team) %} {% set period_str = period_str(team) %}
{% set game_clock = state_attr(team,'clock') %} {% set game_clock = state_attr(team,'clock') | lower %}
{% if state_attr(team,'league') == 'MLB' %} {% if state_attr(team,'league') == 'MLB' %}
{% set inning_parts = game_clock.split(' ') %} {% set inning_parts = game_clock.split(' ') %}
in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }} in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }}