Skip to content

Commit

Permalink
fix: remove unused imports and update doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Salman authored and Ali Salman committed Nov 22, 2023
1 parent 3850f48 commit 65ed3de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lms/djangoapps/badges/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Meta:

class BadgeUserSerializer(serializers.ModelSerializer):
"""
Serializer for the BadgeAssertion model.
Serializer for the User model.
"""
name = serializers.CharField(source='profile.name')
profile_image_url = serializers.SerializerMethodField()
Expand All @@ -61,7 +61,7 @@ class Meta:

class UserLeaderboardSerializer(serializers.ModelSerializer):
"""
Serializer for the BadgeAssertion model.
Serializer for the LeaderboardEntry model.
"""
user = BadgeUserSerializer(read_only=True)

Expand Down
2 changes: 1 addition & 1 deletion lms/djangoapps/badges/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from celery import shared_task
from celery_utils.logged_task import LoggedTask
from edx_django_utils.monitoring import set_code_owner_attribute
from lms.djangoapps.badges.models import BadgeAssertion, LeaderboardConfiguration, LeaderboardEntry
from lms.djangoapps.badges.models import LeaderboardEntry


log = logging.getLogger(__name__)
Expand Down

0 comments on commit 65ed3de

Please sign in to comment.