From 53286bffd8d1cecd4cc5cb7f6f83b39dfc31e659 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 3 Jul 2023 14:27:40 -0400 Subject: [PATCH] Fix sports cards not inhibited when exactly one month away --- custom_templates/sports.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_templates/sports.jinja b/custom_templates/sports.jinja index 25a8f5f..522babb 100644 --- a/custom_templates/sports.jinja +++ b/custom_templates/sports.jinja @@ -60,6 +60,8 @@ {% macro sports_inhibit(team) %} {% if state_attr(team,'kickoff_in') %} - {{ ('months' or 'weeks') in state_attr(team,'kickoff_in') }} + {{ 'months' in state_attr(team,'kickoff_in') or + 'month' in state_attr(team,'kickoff_in') or + 'weeks' in state_attr(team,'kickoff_in') }} {% endif %} {% endmacro %}