diff options
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/tests/wqflask/show_trait/test_show_trait.py | 2 | ||||
-rw-r--r-- | gn2/wqflask/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gn2/tests/wqflask/show_trait/test_show_trait.py b/gn2/tests/wqflask/show_trait/test_show_trait.py index 51b0c82c..e4d2f597 100644 --- a/gn2/tests/wqflask/show_trait/test_show_trait.py +++ b/gn2/tests/wqflask/show_trait/test_show_trait.py @@ -53,7 +53,7 @@ def test_get_ncbi_summary_request(mocker): """})) assert get_ncbi_summary(trait) == "this is a summary of the geneid" mock_get.assert_called_once_with( - "http://eutils.ncbi.nlm.nih.gov/entrez/" + "https://eutils.ncbi.nlm.nih.gov/entrez/" "eutils/esummary.fcgi?db=gene&id=" f"{trait.geneid}&retmode=json" ) diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 3fbda913..b3bdde75 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1195,7 +1195,7 @@ def get_probeset(name, dataset=None): gene_id = gene_id.get("id").split("=")[-1] result = json.loads( requests.get( - f"http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=gene&id={gene_id}&retmode=json" + f"https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=gene&id={gene_id}&retmode=json" ).content )['result'] summary = result[gene_id]['summary'] |