From 880ace44c4fd83ab34c7352ba4ad4fda7b66362b Mon Sep 17 00:00:00 2001 From: guoci Date: Mon, 4 Jul 2022 13:39:59 -0400 Subject: [PATCH] bugfix, hardcoded UP ID --- lib/dat/dat.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dat/dat.go b/lib/dat/dat.go index be8477a8..d3b0925f 100644 --- a/lib/dat/dat.go +++ b/lib/dat/dat.go @@ -189,7 +189,7 @@ func (d *Base) Fetch(id, temp string, iso, rev bool) { } // add the proteome parameter - query = query + "query=proteome:UP000005640" + query = fmt.Sprintf("%squery=proteome:%s", query, id) // is reviewed? if rev { @@ -197,7 +197,6 @@ func (d *Base) Fetch(id, temp string, iso, rev bool) { } else { query = query + "+AND+reviewed:false" } - client := resty.New() // HTTP response gets saved into file, similar to curl -o flag