fix: dict DNF
This commit is contained in:
parent
c96e790a0e
commit
4519d6ebc5
@ -167,7 +167,7 @@ def results(request):
|
|||||||
results = []
|
results = []
|
||||||
n = 1
|
n = 1
|
||||||
for user in User.objects.filter(alkator_class=2).order_by('duration'):
|
for user in User.objects.filter(alkator_class=2).order_by('duration'):
|
||||||
if user.duration is not None;:
|
if user.duration:
|
||||||
if user.alkator_category == 1:
|
if user.alkator_category == 1:
|
||||||
order = f'{n}.'
|
order = f'{n}.'
|
||||||
n += 1
|
n += 1
|
||||||
@ -180,7 +180,7 @@ def results(request):
|
|||||||
'starting_number': user.starting_number,
|
'starting_number': user.starting_number,
|
||||||
})
|
})
|
||||||
for user in User.objects.filter(alkator_class=2).order_by('duration'):
|
for user in User.objects.filter(alkator_class=2).order_by('duration'):
|
||||||
if user.duration is None and user.starting_number:
|
if not user.duration and user.starting_number:
|
||||||
results.append({
|
results.append({
|
||||||
'order': 'DNF',
|
'order': 'DNF',
|
||||||
'duration': 'Nedonkočil',
|
'duration': 'Nedonkočil',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user