guardian list api changes

This commit is contained in:
jain
2023-08-08 11:48:53 +05:30
parent 6596414675
commit f57b111555

View File

@ -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"""