mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Merge pull request #765 from alphagov/fix-large-file-uploads
Fix 500 being thrown when uploading large files
This commit is contained in:
@@ -158,7 +158,7 @@ class Spreadsheet():
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def normalise_newlines(file_content):
|
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
|
@classmethod
|
||||||
def from_rows(cls, rows, filename=''):
|
def from_rows(cls, rows, filename=''):
|
||||||
|
|||||||
Reference in New Issue
Block a user