Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pots/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,7 @@ def get(self, request: Request, voter_id: str, *args, **kwargs):
try:
voter_data = self.get_voter_data(voter_id)

# accounts = self.get_bulk_account_data([voter_id])
account_data = accounts = AccountSerializer(voter_id).data
account_data = self.get_bulk_account_data([voter_id])

response_data = {
"voter_id": voter_id,
Expand Down
4 changes: 2 additions & 2 deletions pots/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def get_is_human(self, obj) -> bool:

if cached_res is not None:
return cached_res
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}&near_block_height=137346724"
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}&near_block_height=137273829"
response = requests.get(url)
if response.status_code == 200:
is_human = response.json()
Expand All @@ -376,7 +376,7 @@ def get_staking_token_balance(self, obj):

if cached_res is not None:
return cached_res
url = f"https://rpc.web4.near.page/account/meta-pool.near/view/ft_balance_of?account_id={voter_id}&near_block_height=137346724"
url = f"https://rpc.web4.near.page/account/meta-pool.near/view/ft_balance_of?account_id={voter_id}&near_block_height=137273829"
response = requests.get(url)
if response.status_code == 200:
balance = response.json()
Expand Down
Loading