mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	fix: recipe clean_time function missing translator argument on recursion (#3969)
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user