michaelbrooks / uw-message-coding

Early prototype of a web-based message coding tool.
MIT License
2 stars 1 forks source link

Create a task review page #96

Closed michaelbrooks closed 9 years ago

michaelbrooks commented 9 years ago

This should show the results of the task, while the task detail page is kind of a basic summary of the task itself. Some information it would be nice to show on this page:

michaelbrooks commented 9 years ago

Some code for the view:

examples = task.get_examples()
frequency = task.get_frequency()

code_info = {}
for code,count in frequency.iteritems():
    code_info[code] = {
        'count': count,
        'examples': examples[code],
    }

context['code_info'] = code_info
michaelbrooks commented 9 years ago

Finished parts one and two in #102