Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
adaa8463
Commit
adaa8463
authored
Feb 26, 2013
by
Julian Arni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed commented-out fn
parent
414c6211
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
lms/djangoapps/foldit/models.py
+0
-18
No files found.
lms/djangoapps/foldit/models.py
View file @
adaa8463
...
...
@@ -38,24 +38,6 @@ class Score(models.Model):
"""
return
(
-
score
)
*
10
+
8000
*
sum_of
# TODO: delete this, incorporate it in get_tops_n
#@staticmethod
#def get_top_n(puzzle_id, n):
#"""
#Arguments:
#puzzle_id (int): id of the puzzle for which to look
#n (int): number of top scores to return.
#Returns:
#The top (lowest energy, highest display score) n scores for the puzzle. If
#there are fewer than n, returns all. Output is a list of dictionaries, sorted
#by display_score:
#[ {username: 'a_user',
#score: 8500}, ...]
#"""
#scores = Score.objects.filter(puzzle_id=puzzle_id).order_by('-best_score')[:n]
#return [{'username': s.user.username, 'score': Score.display_score(s.best_score)}
#for s in scores]
@staticmethod
def
get_tops_n
(
n
,
puzzles
=
[
'994559'
]):
...
...
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