exclued users directory
This commit is contained in:
@@ -4,7 +4,6 @@ from werkzeug.utils import secure_filename
|
||||
from app.forms import *
|
||||
from PIL import Image
|
||||
from os import remove, path
|
||||
from pathlib import Path, PurePath, PurePosixPath
|
||||
|
||||
|
||||
|
||||
@@ -28,13 +27,4 @@ class MyBlocs:
|
||||
def new_img_form():
|
||||
return ImageUpload()
|
||||
|
||||
def list_type_blocs(theme):
|
||||
typeBlocs = list()
|
||||
folders = Path(PurePosixPath('./app').joinpath('templates', theme, 'blocs'))
|
||||
for folder in folders.iterdir():
|
||||
if not(folder.is_dir()):
|
||||
typeBloc=folder.name.split('.')[0]
|
||||
typeBlocs.append(typeBloc[1:])
|
||||
|
||||
return typeBlocs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user