Skip to content

Commit

Permalink
Return 100 points in ANY of the (identifier, downloadURL) resolves to…
Browse files Browse the repository at this point in the history
… a valid URL
  • Loading branch information
orviz committed Oct 3, 2024
1 parent 1ceb52c commit 6375966
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/epos/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,20 +881,14 @@ def rda_a1_03d(self, **kwargs):
resolvable_uris,
)
logger.debug(msg)
points = 100
else:
msg = (
"None of the URIs found for accessing the data is resolvable: %s"
% data_access_uri
)
logger.warning(msg)

remainder = resolvable_uris_num % data_access_uri_num
if remainder == 0:
if resolvable_uris_num > 0:
points = 100
else:
points = round((resolvable_uris_num * 100) / data_access_uri_num)

msg_list = [{"message": msg, "points": points}]

return (points, msg_list)
Expand Down

0 comments on commit 6375966

Please sign in to comment.