diff --git a/CHANGELOG.md b/CHANGELOG.md index 30224818..624bc8e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.4.7 + +- Fixed `scratchattach.get_cloud_logs` function (has been broken since v1.4.0) + # 1.4.6 - Fixed `project.studios()` function diff --git a/scratchattach/cloud.py b/scratchattach/cloud.py index 4702dc50..97494dc3 100644 --- a/scratchattach/cloud.py +++ b/scratchattach/cloud.py @@ -513,7 +513,7 @@ def get_cloud_logs(project_id, *, filter_by_var_named =None, limit=25, offset=0) log_url (str): If you want to get the clouddata from a cloud log API different to Scratch's normal cloud log API, set this argument to the URL of the API. Only set this argument if you know what you are doing. If you want to get the clouddata from the normal API, don't put this argument. """ try: - response = json.loads(requests.get(f"{log_url}?projectid={project_id}&limit={limit}&offset={offset}").text) + response = json.loads(requests.get(f"https://clouddata.scratch.mit.edu/logs?projectid={project_id}&limit={limit}&offset={offset}").text) if filter_by_var_named is None: return response else: return list(filter(lambda k: k["name"] == "☁ "+filter_by_var_named, response)) diff --git a/setup.py b/setup.py index e2985fd2..10bfde90 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import codecs import os -VERSION = '1.4.5' +VERSION = '1.4.7' DESCRIPTION = 'An Scratch API Wrapper for scratch.mit.edu' LONG_DESCRIPTION = DESCRIPTION