Fix sports cards not inhibited when exactly one month away

This commit is contained in:
2023-07-03 14:27:40 -04:00
parent d4073e1f0b
commit 53286bffd8

View File

@ -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 %}