From b000a40f28e2101c16f1e3ff5ff745f669b005a5 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 11 May 2020 19:22:53 -0400 Subject: [PATCH] add `completed` filter arg to `file_list` --- lbry/extras/daemon/daemon.py | 5 +++-- lbry/file/source_manager.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 8352bf047..fd4627987 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -1966,8 +1966,8 @@ class Daemon(metaclass=JSONRPCServerType): [--channel_claim_id=] [--channel_name=] [--claim_name=] [--blobs_in_stream=] [--blobs_remaining=] [--uploading_to_reflector=] - [--is_fully_reflected=] [--status=] [--sort=] - [--comparison=] [--full_status=] [--reverse] + [--is_fully_reflected=] [--status=] [--completed=] + [--sort=] [--comparison=] [--full_status=] [--reverse] [--page=] [--page_size=] [--wallet_id=] Options: @@ -1988,6 +1988,7 @@ class Daemon(metaclass=JSONRPCServerType): --uploading_to_reflector= : (bool) get files currently uploading to reflector --is_fully_reflected= : (bool) get files that have been uploaded to reflector --status= : (str) match by status, ( running | finished | stopped ) + --completed= : (bool) match only completed --blobs_remaining= : (int) amount of remaining blobs to download --sort= : (str) field to sort by (one of the above filter fields) --comparison= : (str) logical comparison, (eq | ne | g | ge | l | le | in) diff --git a/lbry/file/source_manager.py b/lbry/file/source_manager.py index 0fadeb346..bf2846a00 100644 --- a/lbry/file/source_manager.py +++ b/lbry/file/source_manager.py @@ -34,7 +34,8 @@ class SourceManager: 'txid', 'nout', 'channel_claim_id', - 'channel_name' + 'channel_name', + 'completed' } set_filter_fields = {