fix photos
This commit is contained in:
parent
e94304f1bf
commit
dd79d8981b
@ -8,8 +8,8 @@ ALKATOR_CHOICES = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
ALKATOR_CLASSES = (
|
ALKATOR_CLASSES = (
|
||||||
(1, "Jaro 2024"),
|
|
||||||
(2, "Podzim 2024"),
|
(2, "Podzim 2024"),
|
||||||
|
(1, "Jaro 2024"),
|
||||||
)
|
)
|
||||||
|
|
||||||
ALKATOR_CHOICES_DICT = {
|
ALKATOR_CHOICES_DICT = {
|
||||||
|
@ -193,8 +193,6 @@ def results(request):
|
|||||||
|
|
||||||
def photos(request):
|
def photos(request):
|
||||||
rtn = []
|
rtn = []
|
||||||
classes = ALKATOR_CLASSES.copy()
|
|
||||||
classes.reverse()
|
|
||||||
for (i, name) in classes:
|
for (i, name) in classes:
|
||||||
files = glob.glob(f"photos/{i}/*.jpg")
|
files = glob.glob(f"photos/{i}/*.jpg")
|
||||||
random.shuffle(files)
|
random.shuffle(files)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user