Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
51ed18b6
Commit
51ed18b6
authored
Aug 11, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use caching for leaderboard
Fix loading step CSS location
parent
e2151c65
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
openassessment/xblock/leaderboard_mixin.py
+4
-2
openassessment/xblock/static/css/openassessment.css
+0
-0
openassessment/xblock/static/sass/oa/utilities/_developer.scss
+0
-1
requirements/base.txt
+1
-1
No files found.
openassessment/xblock/leaderboard_mixin.py
View file @
51ed18b6
...
@@ -60,12 +60,14 @@ class LeaderboardMixin(object):
...
@@ -60,12 +60,14 @@ class LeaderboardMixin(object):
template_path (string), tuple of context (dict)
template_path (string), tuple of context (dict)
"""
"""
# Retrieve top scores from the submissions API
# Since this uses the read-replica and caches the results,
# there will be some delay in the request latency.
scores
=
sub_api
.
get_top_submissions
(
scores
=
sub_api
.
get_top_submissions
(
student_item_dict
[
'course_id'
],
student_item_dict
[
'course_id'
],
student_item_dict
[
'item_id'
],
student_item_dict
[
'item_id'
],
student_item_dict
[
'item_type'
],
student_item_dict
[
'item_type'
],
self
.
leaderboard_show
,
self
.
leaderboard_show
use_cache
=
False
)
)
for
score
in
scores
:
for
score
in
scores
:
if
'text'
in
score
[
'content'
]:
if
'text'
in
score
[
'content'
]:
...
...
openassessment/xblock/static/css/openassessment.css
View file @
51ed18b6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
openassessment/xblock/static/sass/oa/utilities/_developer.scss
View file @
51ed18b6
...
@@ -1096,7 +1096,6 @@
...
@@ -1096,7 +1096,6 @@
}
}
.step__title
{
.step__title
{
width
:
100%
;
.wrapper--copy
{
.wrapper--copy
{
margin-left
:
0
;
margin-left
:
0
;
...
...
requirements/base.txt
View file @
51ed18b6
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
git+https://github.com/edx/XBlock.git@fc5fea25c973ec66d8db63cf69a817ce624f5ef5#egg=XBlock
git+https://github.com/edx/XBlock.git@fc5fea25c973ec66d8db63cf69a817ce624f5ef5#egg=XBlock
git+https://github.com/edx/xblock-sdk.git@643900aadcb18aaeb7fe67271ca9dbf36e463ee6#egg=xblock-sdk
git+https://github.com/edx/xblock-sdk.git@643900aadcb18aaeb7fe67271ca9dbf36e463ee6#egg=xblock-sdk
edx-submissions>=0.0.
6
,<0.1.0
edx-submissions>=0.0.
7
,<0.1.0
# Third Party Requirements
# Third Party Requirements
boto>=2.13.0,<3.0.0
boto>=2.13.0,<3.0.0
...
...
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