Skip to content

Commit

Permalink
Merge pull request #155 from singnet/development
Browse files Browse the repository at this point in the history
Fixes active stake window API
  • Loading branch information
prashantramangupta committed Oct 14, 2021
2 parents 5794eaa + 0158e2b commit a179864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- run:
name: Install required packages.
command: |
sudo apt-get update
sudo apt-get --allow-releaseinfo-change update
sudo apt-get install default-mysql-client -y
sudo pip install coverage coveralls pytest boto3 alembic
mysql -h 127.0.0.1 -u root -punittest_pwd -e "create database staking_unittest_db"
Expand Down
2 changes: 1 addition & 1 deletion staking/application/services/stake_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get_stake_holder_details_for_active_stake_window(address):
stake_holder_detail = StakeHolderDetailsRepository().get_stake_holder_details(blockchain_id=active_window_id,
staker=address)
total_amount_staked = StakeHolderRepository().get_total_amount_staked()
if stake_holder.amount_approved > 0 or stake_holder.amount_pending_for_approval > 0:
if stake_holder.amount_approved > 0 or stake_holder.amount_pending_for_approval > 0 or stake_holder_detail.claimable_amount > 0:
pass
else:
return active_stake_details
Expand Down

0 comments on commit a179864

Please sign in to comment.