handler:get: only add comment to submission response if it exists.
authorW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 14:55:42 +0000 (10:55 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 14:55:42 +0000 (10:55 -0400)
commit47029a4e1fc329f2d69bf5b39df640f016ebdad6
tree2f27bf05100d4f6c6a4996e6a588980b23b6e0b8
parenta60ac2e163d7e2ee3ad27e070d730942c9193dbc
handler:get: only add comment to submission response if it exists.

This avoids potentially confusing responses like:

> Assignment 1 grade: 8.0
>
> None
pygrader/handler/get.py