Skip to content

Commit

Permalink
fix #447 (#450)
Browse files Browse the repository at this point in the history
* fix #447
* Bump version: 1.0.10 → 1.0.11
  • Loading branch information
alexcos20 authored May 25, 2022
1 parent ac1c87a commit f432d23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.10
current_version = 1.0.11
commit = True
tag = True

Expand Down
30 changes: 12 additions & 18 deletions ocean_provider/validation/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,24 +353,18 @@ def validate(self):
if not self.validate_algo():
return False

if asset_urls:
asset_urls = [append_userdata(a_url, self.data) for a_url in asset_urls]
self.validated_inputs = dict(
{"index": self.index, "id": self.did, "url": asset_urls}
)
else:
self.validated_inputs = {
"index": self.index,
"id": self.did,
"remote": {
"txid": self.data.get("transferTxId"),
"serviceId": self.service.id,
},
}

userdata = self.data.get("userdata")
if userdata:
self.validated_inputs["remote"]["userdata"] = userdata
self.validated_inputs = {
"index": self.index,
"id": self.did,
"remote": {
"txid": self.data.get("transferTxId"),
"serviceId": self.service.id,
},
}

userdata = self.data.get("userdata")
if userdata:
self.validated_inputs["remote"]["userdata"] = userdata

return self.validate_usage() if self.check_usage else True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
url="https://github.com/oceanprotocol/provider-py",
# fmt: off
# bumpversion needs single quotes
version='1.0.10',
version='1.0.11',
# fmt: on
zip_safe=False,
)

0 comments on commit f432d23

Please sign in to comment.