Update openeats.py

This commit is contained in:
vabene1111 2023-03-29 16:03:33 +02:00 committed by GitHub
parent 073ee7e963
commit 11620ba2b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ class OpenEats(Integration):
def get_recipe_from_file(self, file):
description = file['info'][:512]
description = file['info']
description_max_length = Recipe._meta.get_field('description').max_length
if len(description) > description_max_length:
description = description[0:description_max_length]