Handle the URL with subdirectories

pull/1336/head
Sol Lee 2024-03-25 12:11:38 +00:00
rodzic 1039d8dcb9
commit 0808018da7
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,9 @@ class CKAN(ContentProvider):
return None
api_url_path = "/api/3/action/"
api_url = parsed_url._replace(path=api_url_path).geturl()
api_url = parsed_url._replace(
path="/".join(url_parts[:-2]) + api_url_path
).geturl()
status_show_url = f"{api_url}status_show"
resp = self.urlopen(status_show_url)