Skip to content

Commit

Permalink
Bug-1.2:Query parameter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RupaliMahadik committed Mar 7, 2019
1 parent 7886c10 commit 9ec216a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Front-End/src/js/glycoprotein_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,14 @@ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_
// sequences.type = input_sequence.type;
// sequences.aa_sequence = input_sequence.aa_sequence;
// }
var glycans = null;
var glycans = {};
if (input_glycan) {
glycans = {
relation: input_relation,
glytoucan_ac: input_glycan
}
}
var organisms = '';
var organisms ={};
if (input_organism.id != "0") {
organisms.id = input_organism.id;
organisms.name = input_organism.name;
Expand Down
5 changes: 2 additions & 3 deletions Front-End/src/js/protein_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ function ajaxProteinSearchSuccess() {
*/
function searchJson(input_query_type, mass_min, mass_max, input_organism, input_protein_id,
input_refseq_id, input_gene_name, input_protein_name, input_pathway_id, input_sequence) {
var sequences = null;
var sequences = {};
if (input_sequence) {
sequences = {
"type": "exact",
"aa_sequence": input_sequence
}
}

var organisms = '';
var organisms = {};
if (input_organism.id != "0") {
organisms.id = input_organism.id;
organisms.name = input_organism.name;
Expand All @@ -297,7 +297,6 @@ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_
"min": parseInt(mass_min),
"max": parseInt(mass_max)
},

sequence: sequences ?sequences:undefined,
organism: organisms ?organisms:undefined,
refseq_ac: input_refseq_id? input_refseq_id: undefined,
Expand Down

0 comments on commit 9ec216a

Please sign in to comment.