Skip to content

Commit

Permalink
add type
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheo committed Jan 13, 2025
1 parent a2ba5da commit 4fe7bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pots/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class MpdaoSnapshotSerializer(serializers.Serializer):

staking_token_id = serializers.SerializerMethodField() # mpdao is only available on mainnet,

def get_is_human(self, obj):
def get_is_human(self, obj) -> bool:
voter_id = obj.get('voter_id')
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}"
response = requests.get(url)
Expand Down

0 comments on commit 4fe7bba

Please sign in to comment.