update series to use middle image

This commit is contained in:
Ross
2024-04-15 10:18:49 +01:00
parent ab9b16e7f9
commit 1e38078c0a
2 changed files with 11 additions and 2 deletions
+1
View File
@@ -42,6 +42,7 @@ from django.forms.models import model_to_dict
def findMiddle(input_list):
"""Returns the middle element of a list"""
middle = float(len(input_list)) / 2
if middle % 2 != 0:
return input_list[int(middle - 0.5)]