Update openeats.py

This commit is contained in:
vabene1111 2023-03-29 16:03:08 +02:00 committed by GitHub
parent 5a145d7f8e
commit 073ee7e963
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']
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]