Updated jinja templates and css to better enable product alteration

This commit is contained in:
2024-01-30 19:05:09 +00:00
parent fa76e11f83
commit faad412809
7 changed files with 98 additions and 60 deletions

View File

@ -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