Compare commits
3 Commits
2025.4.1
...
meds-rewor
Author | SHA1 | Date | |
---|---|---|---|
002919483f
|
|||
ef548c2df1
|
|||
1d60a4df32
|
@ -1 +1 @@
|
||||
2025.4.1
|
||||
2025.4.2
|
@ -25,10 +25,10 @@
|
||||
{% macro sports_clock(team) %}
|
||||
{% macro data() %}
|
||||
{% 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' %}
|
||||
{% set inning_parts = game_clock.split(' ') %}
|
||||
in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' inning' }}
|
||||
in the {{ inning_parts[0] ~ ' of the ' ~ inning_parts[1] ~ ' ' ~ period_str }}
|
||||
{% else %}
|
||||
{% if ' - ' in game_clock %}
|
||||
{% set clock_time, quarter = game_clock.split(' - ') %}
|
||||
|
Reference in New Issue
Block a user