diff --git a/rescript/bv_brc.py b/rescript/bv_brc.py index c8d5ecb..23126ac 100644 --- a/rescript/bv_brc.py +++ b/rescript/bv_brc.py @@ -26,7 +26,7 @@ def get_bv_brc_metadata( ids_metadata: Union[qiime2.NumericMetadataColumn, - qiime2.CategoricalMetadataColumn] = None, + qiime2.CategoricalMetadataColumn] = None, data_type: str = None, rql_query: str = None, data_field: str = None, @@ -59,7 +59,7 @@ def get_bv_brc_metadata( def get_bv_brc_genomes( ids_metadata: Union[qiime2.NumericMetadataColumn, - qiime2.CategoricalMetadataColumn] = None, + qiime2.CategoricalMetadataColumn] = None, rql_query: str = None, data_field: str = None, ids: list = None, @@ -94,7 +94,7 @@ def get_bv_brc_genomes( def get_bv_brc_genome_features( ids_metadata: Union[qiime2.NumericMetadataColumn, - qiime2.CategoricalMetadataColumn] = None, + qiime2.CategoricalMetadataColumn] = None, rql_query: str = None, data_field: str = None, ids: list = None, @@ -404,7 +404,7 @@ def download_data(data_type, query, accept, select=None): # POST request response = requests.post(url=url, data=data, headers=headers) - a = len(response.json()) + # If the response is successful, process the data if response.status_code == 200: if accept == "application/json":