Skip to content

Commit

Permalink
remote.nextstrain_dot_org: Support downloading of past snapshots of r…
Browse files Browse the repository at this point in the history
…esources

Using the same @YYYY-MM-DD suffix syntax as on the web.  Support for
this server-side is recently landed.¹

¹ <nextstrain/nextstrain.org#719>
  • Loading branch information
tsibley committed Jan 17, 2024
1 parent 5f83c22 commit 42a1c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextstrain/cli/remote/nextstrain_dot_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 42a1c86

Please sign in to comment.