Skip to content

Commit

Permalink
allow https for remote onlist (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjiecn authored Nov 25, 2024
1 parent 2a5df33 commit e3a6dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seqspec/seqspec_onlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o):
onlist_path = os.path.join(base_path, onlist_fn)
if os.path.exists(onlist_path):
urltype = "local"
elif urltype == "http":
elif urltype in ["http", "https"]:
# download the onlist to the base path and return the path
onlist_elements = read_remote_list(onlists[0])
onlist_path = write_onlist(onlist_elements, save_path)
Expand All @@ -147,7 +147,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o):
for o in onlists:
if o.urltype == "local":
lsts.append(read_local_list(o, base_path))
elif o.urltype == "http":
elif o.urltype in ["http", "https"]:
# base_path is ignored for remote onlists
lsts.append(read_remote_list(o, base_path))
onlist_elements = join_onlists(lsts, fmt)
Expand Down

0 comments on commit e3a6dea

Please sign in to comment.