Skip to content

Commit 7efd6f4

Browse files
committed
Fixed a bug in idtracker search (probably introduced by changeset 1842); new test case for that
- Legacy-Id: 1859
1 parent b6f16c7 commit 7efd6f4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/idtracker/testurl.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
200 /idtracker/?search_rfcnumber=1234
2121
200 /idtracker/?search_job_owner=53&search_filename=nfs
2222
200 /idtracker/?sub_state_id=5
23+
200,heavy /idtracker/?sub_state_id=6
2324
200 /idtracker/?search_area_acronym=1260
2425
200 /idtracker/?search_group_acronym=tls
2526
200 /feed/last-call/

ietf/idtracker/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def search(request):
7474
status = args.get('search_status_id', '')
7575
if status != '':
7676
q_objs.append(Q(draft__status=status,rfc_flag=0))
77-
matches = IDInternal.objects.all().filter(*q_objs)
77+
matches = IDInternal.objects.all().exclude(draft=999999).filter(*q_objs)
7878
matches = matches.order_by('cur_state', 'cur_sub_state', 'ballot', '-primary_flag')
7979
# sort by date in reverse
8080
# first build docstate groups, within which we sort
@@ -83,7 +83,7 @@ def search(request):
8383
for m in matches:
8484
if m1 and m1[-1][0] == m.docstate():
8585
if m1[-1][1] and m1[-1][1][0][1] == m.ballot_id:
86-
m1[-1][1][0][2].append(m)
86+
m1[-1][1][0][4].append(m)
8787
else:
8888
m1[-1][1].append((m.event_date, m.ballot_id, m.primary_flag, m.draft_id, [m]))
8989
else:

0 commit comments

Comments
 (0)