exclued users directory

This commit is contained in:
2026-07-23 04:27:11 +02:00
committed by kitoy
parent 772941eb4f
commit c3438afc01
19 changed files with 1 additions and 70 deletions

View File

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