From 1973329013c2a346f4e9e82272148d7dae594007 Mon Sep 17 00:00:00 2001 From: Petro Date: Mon, 20 Nov 2023 06:48:08 -0500 Subject: [PATCH] Fix phrase in _just_time to use chosen instead of value --- easy_time.jinja | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easy_time.jinja b/easy_time.jinja index 3a36cef..048f61a 100644 --- a/easy_time.jinja +++ b/easy_time.jinja @@ -1195,13 +1195,14 @@ {%- else %} {%- set chosen = value %} {%- endif %} + {%- set chosen = value | int %} {%- if short %} {%- set units = translate('time', item, index=0, language=language) %} {%- else %} - {%- set units = translate('time', item, index=2, language=language) if value != 1 else translate('time', item, index=1, language=language) %} + {%- set units = translate('time', item, index=2, language=language) if chosen != 1 else translate('time', item, index=1, language=language) %} {%- set units = ' %s' % units %} {%- endif %} - {%- set ns.ret = ns.ret + [ '%s%s' % (chosen | int, units) ] %} + {%- set ns.ret = ns.ret + [ '%s%s' % (chosen, units) ] %} {%- if biggest and ns.ret | length == 1 %} {%- break %} {%- endif %}