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
3ffa967a
Commit
3ffa967a
authored
Feb 15, 2015
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Pylint: W0105(pointless-string-statement)
parent
c0a7bf94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
common/lib/xmodule/xmodule/open_ended_grading_classes/peer_grading_service.py
+5
-6
lms/djangoapps/certificates/models.py
+10
-10
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/peer_grading_service.py
View file @
3ffa967a
...
...
@@ -117,13 +117,12 @@ class PeerGradingService(GradingService):
return
result
"""
This is a mock peer grading service that can be used for unit tests
without making actual service calls to the grading controller
"""
class
MockPeerGradingService
(
object
):
"""
This is a mock peer grading service that can be used for unit tests
without making actual service calls to the grading controller
"""
def
get_next_submission
(
self
,
problem_location
,
grader_id
):
return
{
'success'
:
True
,
...
...
lms/djangoapps/certificates/models.py
View file @
3ffa967a
from
django.contrib.auth.models
import
User
from
django.db
import
models
from
django.db.models.signals
import
post_save
from
django.dispatch
import
receiver
from
django.conf
import
settings
from
datetime
import
datetime
from
model_utils
import
Choices
from
xmodule_django.models
import
CourseKeyField
,
NoneToEmptyManager
from
util.milestones_helpers
import
fulfill_course_milestone
"""
Certificates are created for a student and an offering of a course.
...
...
@@ -55,6 +45,16 @@ Eligibility:
unless he has allow_certificate set to False.
"""
from
django.contrib.auth.models
import
User
from
django.db
import
models
from
django.db.models.signals
import
post_save
from
django.dispatch
import
receiver
from
django.conf
import
settings
from
datetime
import
datetime
from
model_utils
import
Choices
from
xmodule_django.models
import
CourseKeyField
,
NoneToEmptyManager
from
util.milestones_helpers
import
fulfill_course_milestone
class
CertificateStatuses
(
object
):
deleted
=
'deleted'
...
...
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