Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-submissions
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-submissions
Commits
005bdd71
Commit
005bdd71
authored
Mar 08, 2016
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL logging
parent
7ed4d7d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
submissions/api.py
+3
-1
submissions/tests/test_api.py
+3
-0
No files found.
submissions/api.py
View file @
005bdd71
...
...
@@ -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
...
...
submissions/tests/test_api.py
View file @
005bdd71
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment