fix photos

This commit is contained in:
Martin Quarda 2024-10-07 12:59:14 +02:00
parent e94304f1bf
commit dd79d8981b
2 changed files with 1 additions and 3 deletions

View File

@ -8,8 +8,8 @@ ALKATOR_CHOICES = (
)
ALKATOR_CLASSES = (
(1, "Jaro 2024"),
(2, "Podzim 2024"),
(1, "Jaro 2024"),
)
ALKATOR_CHOICES_DICT = {

View File

@ -193,8 +193,6 @@ def results(request):
def photos(request):
rtn = []
classes = ALKATOR_CLASSES.copy()
classes.reverse()
for (i, name) in classes:
files = glob.glob(f"photos/{i}/*.jpg")
random.shuffle(files)