mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
fix: recipe clean_time function missing translator argument on recursion (#3969)
This commit is contained in:
parent
c9bbae6f77
commit
17d1cd26dc
1 changed files with 2 additions and 2 deletions
|
@ -368,9 +368,9 @@ def clean_time(time_entry: str | timedelta | None, translator: Translator) -> No
|
||||||
case timedelta():
|
case timedelta():
|
||||||
return pretty_print_timedelta(time_entry, translator)
|
return pretty_print_timedelta(time_entry, translator)
|
||||||
case {"minValue": str(value)}:
|
case {"minValue": str(value)}:
|
||||||
return clean_time(value)
|
return clean_time(value, translator)
|
||||||
case [str(), *_]:
|
case [str(), *_]:
|
||||||
return clean_time(time_entry[0])
|
return clean_time(time_entry[0], translator)
|
||||||
case datetime():
|
case datetime():
|
||||||
# TODO: Not sure what to do here
|
# TODO: Not sure what to do here
|
||||||
return str(time_entry)
|
return str(time_entry)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue