This commit is contained in:
zeppi 2022-03-24 18:41:29 -04:00
parent a24fbf81d7
commit c8aa73a5d6
2 changed files with 5 additions and 1 deletions

View file

@ -647,6 +647,10 @@ def expand_query(**kwargs):
{"must_not": {"must_not":
[ [
{"term": {"reposted_claim_type": CLAIM_TYPES['stream']}} {"term": {"reposted_claim_type": CLAIM_TYPES['stream']}}
],
"must":
[
{"term": {"claim_type": CLAIM_TYPES['repost']}}
] ]
} }
} }

View file

@ -418,7 +418,7 @@ class ClaimSearchCommand(ClaimTestCase):
print('NOSRC', no_source_claims) print('NOSRC', no_source_claims)
print('MP4', mp4_claims) print('MP4', mp4_claims)
print('NSRC NO MEDIA', no_source_claims_no_media) print('NSRC NO MEDIA', no_source_claims_no_media)
# self.assertEqual(1, len(no_source_claims_no_media)) self.assertEqual(1, len(no_source_claims_no_media))
self.assertEqual(1, len(no_source_claims)) self.assertEqual(1, len(no_source_claims))
self.assertEqual(1, len(mp4_claims)) self.assertEqual(1, len(mp4_claims))