From 0e7579547686aff516c0b4fc5fa5a4023ce4f32e Mon Sep 17 00:00:00 2001 From: Maria Carmina Date: Wed, 4 Oct 2023 13:36:42 +0300 Subject: [PATCH] revert. --- ocean_provider/routes/consume.py | 6 +++--- ocean_provider/validation/algo.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ocean_provider/routes/consume.py b/ocean_provider/routes/consume.py index 91b6860a..caa7920c 100644 --- a/ocean_provider/routes/consume.py +++ b/ocean_provider/routes/consume.py @@ -337,9 +337,9 @@ def download(): # the datatoken address asset = get_asset_from_metadatastore(get_metadata_url(), did) - consumable, message = check_asset_consumable(asset, consumer_address, logger) - if not consumable: - return error_response(message, 400, logger) + # consumable, message = check_asset_consumable(asset, consumer_address, logger) + # if not consumable: + # return error_response(message, 400, logger) service = asset.get_service_by_id(service_id) diff --git a/ocean_provider/validation/algo.py b/ocean_provider/validation/algo.py index 11b2b7d5..89cdb606 100644 --- a/ocean_provider/validation/algo.py +++ b/ocean_provider/validation/algo.py @@ -310,14 +310,14 @@ def preliminary_algo_validation(self): self.message = "file_unavailable" return False - consumable, message = check_asset_consumable( - algo_ddo, self.consumer_address, logger, service.service_endpoint - ) - - if not consumable: - self.resource += ".credentials" - self.message = message - return False + # consumable, message = check_asset_consumable( + # algo_ddo, self.consumer_address, logger, service.service_endpoint + # ) + # + # if not consumable: + # self.resource += ".credentials" + # self.message = message + # return False # try: # manager = AddressCredential(algo_ddo)