Commit 005bdd71 by Eric Fischer

SQL logging

parent 7ed4d7d2
......@@ -450,7 +450,9 @@ def get_all_course_submission_information(course_id, item_type, read_replica=Tru
query = submission_qs.select_related('student_item__scoresummary__latest__submission').filter(
student_item__course_id=course_id,
student_item__item_type=item_type,
).iterator()
)
print query.query
query = query.iterator()
for submission in query:
student_item = submission.student_item
......
......@@ -146,6 +146,9 @@ class TestSubmissionsApi(TestCase):
self.assertEqual(submissions_and_scores[0][2], {})
self.assertEqual(submissions_and_scores[2][2], {})
# Deliberately fail so I can see logged output
self.assertTrue(False)
def test_get_submission(self):
# Test base case that we can create a submission and get it back
sub_dict1 = api.create_submission(STUDENT_ITEM, ANSWER_ONE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment