grapesmoker / qems2

A new implementation of the QEMS submission system for quizbowl questions.
GNU General Public License v2.0
9 stars 4 forks source link

Completed sets not sorted by date #312

Closed Theta91 closed 7 years ago

Theta91 commented 7 years ago

Upcoming sets is sorted by date; completed sets is not sorted by date (it's sorted by qset.id, I think).

Referencing qsub/templates/question_sets.html and qsub/views.py, I can't see where the difference occurs.

I don't have a repo to test with, but the fix may be as simple as adding completed_sets.sort(key=lambda x: x.date) (line 74).