Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the path to the 'latest' measurements. #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion RIPEAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self, data, wait=True, sleep_notification=None, key=None, id=None):
self.url_status = base_url + "/%s/?fields=status"
self.url_results = base_url + "/%s/results/"
self.url_all = base_url + "/%s/"
self.url_latest = base_url + "-latest/%s/?versions=%s"
self.url_latest = base_url + "/%s/latest/?versions=%s"

self.status = None

Expand Down Expand Up @@ -216,6 +216,8 @@ def results(self, wait=True, percentage_required=0.9, latest=None):
"""
if latest is not None:
wait = False
if latest < 1 or latest > 10:
raise IncompatibleArguments("Latest can only be a value between 1 and 10. %s is out of that range." % latest)
if latest is None:
request = JsonRequest(self.url_results % self.id)
else:
Expand Down