From d75610ca9eca56a2d7f75d296ca0bfa4302adcb7 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Fri, 27 Oct 2023 21:16:00 +0200 Subject: [PATCH] fix remaining claims error --- authentication/serializers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentication/serializers.py b/authentication/serializers.py index 6aa38b5e..0772ddda 100644 --- a/authentication/serializers.py +++ b/authentication/serializers.py @@ -53,7 +53,7 @@ class Meta: class ProfileSerializer(serializers.ModelSerializer): wallets = WalletSerializer(many=True, read_only=True) - total_weekly_claims_remaining = serializers.SerializerMethodField() + total_round_claims_remaining = serializers.SerializerMethodField() token = serializers.SerializerMethodField() class Meta: @@ -65,7 +65,7 @@ class Meta: "initial_context_id", "is_meet_verified", "is_aura_verified", - "total_weekly_claims_remaining", + "total_round_claims_remaining", "wallets", ] @@ -73,7 +73,7 @@ def get_token(self, instance): token, bol = Token.objects.get_or_create(user=instance.user) return token.key - def get_total_weekly_claims_remaining(self, instance): + def get_total_round_claims_remaining(self, instance): gs = GlobalSettings.objects.first() if gs is not None: return gs.gastap_round_claim_limit - LimitedChainClaimManager.get_total_round_claims(instance)