mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-17 02:45:08 +00:00
guardian list api changes
This commit is contained in:
@ -233,7 +233,7 @@ class ArticleListSerializer(serializers.ModelSerializer):
|
|||||||
def get_total_points(self, obj):
|
def get_total_points(self, obj):
|
||||||
"""total points of article"""
|
"""total points of article"""
|
||||||
total_question = ArticleSurvey.objects.filter(article=obj).count()
|
total_question = ArticleSurvey.objects.filter(article=obj).count()
|
||||||
return total_question * 5
|
return total_question * NUMBER['five']
|
||||||
|
|
||||||
def get_is_completed(self, obj):
|
def get_is_completed(self, obj):
|
||||||
"""complete all question"""
|
"""complete all question"""
|
||||||
|
Reference in New Issue
Block a user