mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -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(): | ||||
|             return pretty_print_timedelta(time_entry, translator) | ||||
|         case {"minValue": str(value)}: | ||||
|             return clean_time(value) | ||||
|             return clean_time(value, translator) | ||||
|         case [str(), *_]: | ||||
|             return clean_time(time_entry[0]) | ||||
|             return clean_time(time_entry[0], translator) | ||||
|         case datetime(): | ||||
|             # TODO: Not sure what to do here | ||||
|             return str(time_entry) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user