diff --git a/dankware/requests.py b/dankware/requests.py index 67991fc..01d28cb 100644 --- a/dankware/requests.py +++ b/dankware/requests.py @@ -17,10 +17,10 @@ def github_downloads(user_repo: str) -> tuple[str]: ``` """ - response = requests.get(f"https://api.github.com/repos/{user_repo}/releases/latest", headers = {"User-Agent": "dankware"}, timeout=3).json() + response = requests.get(f"https://api.github.com/repos/{user_repo}/releases/latest", headers = {"User-Agent": "dankware"}, timeout=3) if response.status_code == 200: - return tuple(data["browser_download_url"] for data in response["assets"]) + return tuple(data["browser_download_url"] for data in response.json()["assets"]) raise RuntimeError(f"Failed to get latest release from github: [{response.status_code}] {response.reason}") def github_file_selector(user_repo: str, filter_mode: str, filter_iterable: list[str] | tuple[str]) -> tuple[str]: diff --git a/run_tests.py b/run_tests.py index b9417a8..e701f5c 100644 --- a/run_tests.py +++ b/run_tests.py @@ -154,7 +154,7 @@ def gen_new(): COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n")) if os.name == 'nt': - locations = ("AppData", "Desktop", "Documents", "Personal", "Favorites", "Local AppData", "Pictures", "My Pictures", "Videos", "My Video", "Music", "My Music") + locations = ("AppData", "Desktop", "Documents", "Favorites", "Local AppData", "Music", "Pictures", "Videos") elif os.name == 'posix': locations = ("Desktop", "Documents", "Downloads", "Pictures", "Videos", "Music") for location in locations: diff --git a/setup.py b/setup.py index dda24ef..510b69f 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ license = "MIT", name = "dankware", - version = "3.6.1", + version = "3.6.2", author = "SirDank", author_email = "SirDankenstein@protonmail.com",