Update openeats.py
This commit is contained in:
parent
073ee7e963
commit
11620ba2b6
@ -9,7 +9,7 @@ class OpenEats(Integration):
|
|||||||
|
|
||||||
def get_recipe_from_file(self, file):
|
def get_recipe_from_file(self, file):
|
||||||
|
|
||||||
description = file['info'][:512]
|
description = file['info']
|
||||||
description_max_length = Recipe._meta.get_field('description').max_length
|
description_max_length = Recipe._meta.get_field('description').max_length
|
||||||
if len(description) > description_max_length:
|
if len(description) > description_max_length:
|
||||||
description = description[0:description_max_length]
|
description = description[0:description_max_length]
|
||||||
|
Loading…
Reference in New Issue
Block a user