Commit 973c7632 authored by Iker Hurtado's avatar Iker Hurtado
Browse files

Dummy commit related to infrastructure issues

parent 0bef0503
Pipeline #8932 passed with stage
in 28 seconds
...@@ -730,7 +730,7 @@ ...@@ -730,7 +730,7 @@
function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){
//return 'http://46.101.100.99/materials/search?page='+page+
let url= API_BASE_URL+'materials?'; let url= API_BASE_URL+'materials?';
if (formula){ if (formula){
url += 'formula='+searchItems; url += 'formula='+searchItems;
...@@ -742,7 +742,7 @@ ...@@ -742,7 +742,7 @@
} }
url += searchItems[i]; // The last Element without comma behind url += searchItems[i]; // The last Element without comma behind
} }
console.log('URL: '+url);
return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page; return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page;
} }
......
...@@ -51,7 +51,7 @@ function getSubscriptedFormula(formula){ ...@@ -51,7 +51,7 @@ function getSubscriptedFormula(formula){
function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){
//return 'http://46.101.100.99/materials/search?page='+page+
let url= API_BASE_URL+'materials?'; let url= API_BASE_URL+'materials?';
if (formula){ if (formula){
url += 'formula='+searchItems; url += 'formula='+searchItems;
...@@ -63,7 +63,7 @@ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){ ...@@ -63,7 +63,7 @@ function getSearchURL(formula, searchItems, exclusive, page, results_per_page){
} }
url += searchItems[i]; // The last Element without comma behind url += searchItems[i]; // The last Element without comma behind
} }
console.log('URL: '+url);
return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page; return url+'&exclusive='+(exclusive ? '1' : '0')+'&page='+page+'&per_page='+results_per_page;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment