mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fix: recipe clean_time function missing translator argument on recursion (#3969)
This commit is contained in:
parent
c9bbae6f77
commit
17d1cd26dc
@ -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…
x
Reference in New Issue
Block a user