Skip to content

Commit

Permalink
Add points_type field to serializers so frontend can use it
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAda committed Feb 28, 2022
1 parent 7157540 commit aef1c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/challenge/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class FastChallengeSerializer(ChallengeSerializerMixin, serpy.Serializer):
challenge_type = serpy.StrField()
challenge_metadata = serpy.Field()
flag_type = serpy.StrField()
points_type = serpy.StrField()
author = serpy.StrField()
score = serpy.IntField()
unlock_requirements = serpy.StrField()
Expand Down Expand Up @@ -214,6 +215,7 @@ class FastAdminChallengeSerializer(ChallengeSerializerMixin, serpy.Serializer):
challenge_metadata = serpy.Field()
flag_type = serpy.StrField()
flag_metadata = serpy.Field()
points_type = serpy.StrField()
author = serpy.StrField()
score = serpy.IntField()
unlock_requirements = serpy.StrField()
Expand Down Expand Up @@ -263,6 +265,7 @@ class Meta:
"challenge_type",
"challenge_metadata",
"flag_type",
"points_type",
"author",
"score",
"unlock_requirements",
Expand Down

0 comments on commit aef1c79

Please sign in to comment.