Skip to content

Commit

Permalink
Merge pull request #3590 from lbryio/fix-address_list-pagination
Browse files Browse the repository at this point in the history
fix pagination with `address_list` command
  • Loading branch information
eukreign committed Apr 6, 2022
2 parents 79a5f0e + 2d20458 commit 8cdcd77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lbry/wallet/database.py
Expand Up @@ -1211,6 +1211,7 @@ async def get_addresses(self, cols=None, read_only=False, **constraints):
return addresses

async def get_address_count(self, cols=None, read_only=False, **constraints):
self._clean_txo_constraints_for_aggregation(constraints)
count = await self.select_addresses('COUNT(*) as total', read_only=read_only, **constraints)
return count[0]['total'] or 0

Expand Down

0 comments on commit 8cdcd77

Please sign in to comment.