Fixed typo from jpfg to jpeg

This commit is contained in:
2019-03-03 22:46:10 +01:00
parent a58efff623
commit d3f2df25a2

View File

@@ -50,7 +50,7 @@ def upload(id):
print('processing file: ', filename)
ext = os.path.splitext(filename)[1][1:].strip().lower()
if ext in set(['jpg', 'jpfg', 'png']):
if ext in set(['jpg', 'jpeg', 'png']):
print('File supported moving on.')
else:
raise InvalidFiletype('Unsupported file type {}'.format(ext), status_code=415)