From dff3f9a58eb1bebde761363803fbbaf04748758d Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Fri, 22 Oct 2021 23:06:12 -0600 Subject: [PATCH] changed xlrd call to work with FileStorage --- flaskfdx/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaskfdx/upload.py b/flaskfdx/upload.py index 1ae6db9..de06640 100644 --- a/flaskfdx/upload.py +++ b/flaskfdx/upload.py @@ -4,7 +4,7 @@ from flaskfdx.db import get_db from flaskfdx.tools import fdxsql def validate_xls_file(file): - if inspect_format(file) == 'xls': + if inspect_format(None, file.read()) == 'xls': return True else: return False