Merge branch 'testing' into bugfix/3772-excel-name

This commit is contained in:
Cayo Puigdefabregas 2022-09-14 16:30:56 +02:00
commit cb48cc9f65
1 changed files with 3 additions and 1 deletions

View File

@ -1523,7 +1523,9 @@ class UploadPlaceholderForm(FlaskForm):
else:
self.source = "Excel File: {}".format(_file.filename)
try:
data = pd.read_excel(_file).fillna('').to_dict()
data = (
pd.read_excel(_file, converters={'Phid': str}).fillna('').to_dict()
)
except ValueError:
txt = ["File don't have a correct format"]
self.placeholder_file.errors = txt