Skip to content
Snippets Groups Projects
Unverified Commit 5a2c3082 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

api: support multi-character site IDs

now required in practice by the rates+pop injection dataset
parent afca96c1
No related branches found
No related tags found
No related merge requests found
Pipeline #583768 failed
......@@ -63,7 +63,7 @@ def find_types_path(site=None, ext=DEFAULT_EXT):
"""Return the API path to query for datasets for one or all sites.
"""
if site:
return f"{ext}/{site[0]}.json"
return f"{ext}/{site}.json"
return f"{ext}/all.json"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment