From f50196d395e5d71a81ac77d7a14ee50ace6e2c43 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 13 Jul 2020 15:50:00 -0400 Subject: [PATCH] fix channel integration test --- lbry/db/sync.py | 6 +++--- lbry/service/api.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lbry/db/sync.py b/lbry/db/sync.py index 5a9b9a536..01beefa93 100644 --- a/lbry/db/sync.py +++ b/lbry/db/sync.py @@ -14,9 +14,9 @@ SPENDS_UPDATE_EVENT = Event.add("client.sync.spends.update", "steps") CLAIMS_INSERT_EVENT = Event.add("client.sync.claims.insert", "claims") CLAIMS_UPDATE_EVENT = Event.add("client.sync.claims.update", "claims") CLAIMS_DELETE_EVENT = Event.add("client.sync.claims.delete", "claims") -SUPPORT_INSERT_EVENT = Event.add("client.sync.claims.insert", "supports") -SUPPORT_UPDATE_EVENT = Event.add("client.sync.claims.update", "supports") -SUPPORT_DELETE_EVENT = Event.add("client.sync.claims.delete", "supports") +SUPPORT_INSERT_EVENT = Event.add("client.sync.supports.insert", "supports") +SUPPORT_UPDATE_EVENT = Event.add("client.sync.supports.update", "supports") +SUPPORT_DELETE_EVENT = Event.add("client.sync.supports.delete", "supports") def process_all_things_after_sync(): diff --git a/lbry/service/api.py b/lbry/service/api.py index daabd71a2..531710785 100644 --- a/lbry/service/api.py +++ b/lbry/service/api.py @@ -2655,9 +2655,9 @@ class API: is_my_output=None, is_not_my_output=None, is_my_input=None, is_not_my_input=None): if is_spent: - constraints['is_spent'] = True + constraints['spent_height__not'] = 0 elif is_not_spent: - constraints['is_spent'] = False + constraints['spent_height'] = 0 constraints['exclude_internal_transfers'] = exclude_internal_transfers if is_my_input_or_output is True: constraints['is_my_input_or_output'] = True