Closed nickdotreid closed 10 years ago
This looks promising, but when I clicked to filter assignments by section id, I got an error (stacktrace below). Looks like line 157 in gradeassignment section_form.vars.section_id is not defined.
Traceback
Traceback (most recent call last):
File "/home/web2py/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/home/web2py/applications/runestone/controllers/admin.py", line 354, in
<class 'gluon.contrib.pg8000.errors.ProgrammingError'>(('ERROR', '42703', 'column "section_id" does not exist'))
That's an embaressing error -- I wonder why it didn't throw errors at me.
I updated the SQL query, and switched it away from a SQL string to DAL ~ which matches the rest of the architecture (and is slightly less ugly) -- the query is almost the same ~ but slightly simpler (and shows the same results)
because of this I had to update the view HTML
I created a simple method of grouping active code examples. This change takes place on admin/list_assignments.
I also cleaned up the gradeassignments page, by making skulpt run and sticking all assignment text into a modal (which is easier to read). I also included a form to filter by section on this page
Sections will be required.