forked from LBRYCommunity/lbry-sdk
Merge pull request #3590 from lbryio/fix-address_list-pagination
fix pagination with `address_list` command
This commit is contained in:
commit
8cdcd770c0
1 changed files with 1 additions and 0 deletions
|
@ -1211,6 +1211,7 @@ class Database(SQLiteMixin):
|
||||||
return addresses
|
return addresses
|
||||||
|
|
||||||
async def get_address_count(self, cols=None, read_only=False, **constraints):
|
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)
|
count = await self.select_addresses('COUNT(*) as total', read_only=read_only, **constraints)
|
||||||
return count[0]['total'] or 0
|
return count[0]['total'] or 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue