mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
Update openeats.py
This commit is contained in:
@@ -9,7 +9,7 @@ class OpenEats(Integration):
|
||||
|
||||
def get_recipe_from_file(self, file):
|
||||
|
||||
description = file['info']
|
||||
description = file['info'][:512]
|
||||
description_max_length = Recipe._meta.get_field('description').max_length
|
||||
if len(description) > description_max_length:
|
||||
description = description[0:description_max_length]
|
||||
|
||||
Reference in New Issue
Block a user