Skip to content

Commit

Permalink
revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Oct 4, 2023
1 parent 57cd9bb commit 0e75795
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ocean_provider/routes/consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
16 changes: 8 additions & 8 deletions ocean_provider/validation/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e75795

Please sign in to comment.