Fix hits not INT

This commit is contained in:
AnthorNet 2017-08-10 16:18:37 +02:00 committed by GitHub
parent 91c1949a21
commit 17bae4bfba

View File

@ -228,15 +228,10 @@
schemasCount = {};
$.each(schemasCountTmp, function(schema, hits){
schema = schema.replace('http://schemas.elite-markets.net/eddn/', 'https://eddn.edcd.io/schemas/');
hits = parseInt(hits);
if(schemasCount[schema])
{
schemasCount[schema] += hits;
}
else
{
schemasCount[schema] = hits;
}
if(schemasCount[schema]){ schemasCount[schema] += hits; }
else{ schemasCount[schema] = hits; }
});
// Loop results