Skip to content

Commit

Permalink
Merge branch 'master' into optional-parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko authored Nov 22, 2024
2 parents c7d6c70 + d1d020b commit 204f7d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cdci_data_analysis/analysis/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,8 @@ def update_par_dic_with_uploaded_files(self, par_dic, uploaded_files_obj, produc
else:
basepath = os.path.join(f"http://{bind_host}:{bind_port}", 'download_file')
for f in uploaded_files_obj:
dpars = urlencode(dict(file_list=uploaded_files_obj[f],
_is_mmoda_url=True,
return_archive=False))
dict_args = dict(file_list=uploaded_files_obj[f], _is_mmoda_url=True, return_archive=False)
dpars = urlencode(dict_args)
download_file_url = f"{basepath}?{dpars}"
par_dic[f] = download_file_url

Expand Down
2 changes: 1 addition & 1 deletion tests/test_server_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from dateutil import parser, tz
from functools import reduce
from urllib import parse
from urllib.parse import urlencode
from urllib.parse import urlencode, urlparse, parse_qs, urlunparse
import nbformat as nbf
import yaml
import gzip
Expand Down

0 comments on commit 204f7d2

Please sign in to comment.