Sort needsponsor report by oldest submission date.
This commit is contained in:
parent
5ca2c7caf3
commit
4de9057b79
1 changed files with 3 additions and 1 deletions
|
@ -450,7 +450,6 @@ def report_needsponsor(bugs, bugdata, loader, usermap, tmpdir, subs):
|
||||||
for i in bugs:
|
for i in bugs:
|
||||||
if select_needsponsor(i, bugdata[i.id]):
|
if select_needsponsor(i, bugdata[i.id]):
|
||||||
selected.append(i)
|
selected.append(i)
|
||||||
selected.sort(key=reporter)
|
|
||||||
|
|
||||||
# Determine the oldest reported bug
|
# Determine the oldest reported bug
|
||||||
for i in selected:
|
for i in selected:
|
||||||
|
@ -459,6 +458,9 @@ def report_needsponsor(bugs, bugdata, loader, usermap, tmpdir, subs):
|
||||||
elif i.creation_time < oldest[i.reporter]:
|
elif i.creation_time < oldest[i.reporter]:
|
||||||
oldest[i.reporter] = i.creation_time
|
oldest[i.reporter] = i.creation_time
|
||||||
|
|
||||||
|
selected.sort(key=reporter)
|
||||||
|
selected.sort(key=lambda a: oldest[a.reporter])
|
||||||
|
|
||||||
for i in selected:
|
for i in selected:
|
||||||
rowclass = rowclass_plain(data['count'])
|
rowclass = rowclass_plain(data['count'])
|
||||||
r = i.reporter;
|
r = i.reporter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue