From 42a1c8642c3c44fa0469ac04dbc2ac07885495d6 Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Wed, 17 Jan 2024 15:10:45 -0800 Subject: [PATCH] remote.nextstrain_dot_org: Support downloading of past snapshots of resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using the same @YYYY-MM-DD suffix syntax as on the web. Support for this server-side is recently landed.¹ ¹ --- nextstrain/cli/remote/nextstrain_dot_org.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextstrain/cli/remote/nextstrain_dot_org.py b/nextstrain/cli/remote/nextstrain_dot_org.py index b7a0ae4c..b64f515a 100644 --- a/nextstrain/cli/remote/nextstrain_dot_org.py +++ b/nextstrain/cli/remote/nextstrain_dot_org.py @@ -682,7 +682,7 @@ def api_endpoint(origin: Origin, path: Union[str, PurePosixPath]) -> str: >>> api_endpoint(URL("http://localhost:5000/x/").origin, "a/b/c") 'http://localhost:5000/a/b/c' """ - return origin + "/" + urlquote(str(path).lstrip("/")) + return origin + "/" + urlquote(str(path).lstrip("/"), safe = "/@") class auth(requests.auth.AuthBase):