diff --git a/lbry/schema/result.py b/lbry/schema/result.py index 3469a9c4c..d0889898e 100644 --- a/lbry/schema/result.py +++ b/lbry/schema/result.py @@ -38,7 +38,9 @@ class Censor: for claim_hash, lookup in ( (row['claim_hash'], self.streams), (row['claim_hash'], self.channels), - (row['channel_hash'], self.channels)): + (row['channel_hash'], self.channels), + (row['reposted_claim_hash'], self.streams), + (row['reposted_claim_hash'], self.channels)): censoring_channel_hash = lookup.get(claim_hash) if censoring_channel_hash: was_censored = True diff --git a/lbry/testcase.py b/lbry/testcase.py index dc3c5ff2e..4878f36fb 100644 --- a/lbry/testcase.py +++ b/lbry/testcase.py @@ -571,4 +571,4 @@ class CommandTestCase(IntegrationTestCase): return tx['outputs'][0]['claim_id'] def assertItemCount(self, result, count): # pylint: disable=invalid-name - self.assertEqual(result['total_items'], count) + self.assertEqual(count, result['total_items']) diff --git a/lbry/wallet/server/db/reader.py b/lbry/wallet/server/db/reader.py index 98bdcb933..b60990001 100644 --- a/lbry/wallet/server/db/reader.py +++ b/lbry/wallet/server/db/reader.py @@ -317,7 +317,13 @@ def claims_query(cols, for_count=False, **constraints) -> Tuple[str, Dict]: constraints['claim.txo_hash'] = tx_hash + struct.pack('