Merge pull request #344 from eReuse/bugfix/3772-excel-name

add Ods File as description in Placeholders Log
This commit is contained in:
cayop 2022-09-14 16:51:58 +02:00 committed by GitHub
commit 07c641f4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1517,6 +1517,9 @@ class UploadPlaceholderForm(FlaskForm):
)
data = data.fillna('').to_dict()
return data
else:
if _file.content_type == 'application/vnd.oasis.opendocument.spreadsheet':
self.source = "Ods File: {}".format(_file.filename)
else:
self.source = "Excel File: {}".format(_file.filename)
try: