diff --git a/app/utils.py b/app/utils.py index 242af78dc..b5ab7f305 100644 --- a/app/utils.py +++ b/app/utils.py @@ -158,7 +158,7 @@ class Spreadsheet(): @staticmethod def normalise_newlines(file_content): - return '\r\n'.join(file_content.getvalue().decode('utf-8').splitlines()) + return '\r\n'.join(file_content.read().decode('utf-8').splitlines()) @classmethod def from_rows(cls, rows, filename=''):