Updated jinja templates and css to better enable product alteration
This commit is contained in:
@ -2,7 +2,7 @@ import os
|
||||
import uuid
|
||||
import pathlib
|
||||
|
||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'}
|
||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'bmp'}
|
||||
|
||||
|
||||
def allowed_file(filename) -> bool:
|
||||
@ -44,3 +44,5 @@ def remove_file(dir: str):
|
||||
os.remove(dir)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
except IsADirectoryError:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user