mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-13 05:42:14 +03:00
Fix hits not INT
This commit is contained in:
parent
91c1949a21
commit
17bae4bfba
@ -228,15 +228,10 @@
|
|||||||
schemasCount = {};
|
schemasCount = {};
|
||||||
$.each(schemasCountTmp, function(schema, hits){
|
$.each(schemasCountTmp, function(schema, hits){
|
||||||
schema = schema.replace('http://schemas.elite-markets.net/eddn/', 'https://eddn.edcd.io/schemas/');
|
schema = schema.replace('http://schemas.elite-markets.net/eddn/', 'https://eddn.edcd.io/schemas/');
|
||||||
|
hits = parseInt(hits);
|
||||||
|
|
||||||
if(schemasCount[schema])
|
if(schemasCount[schema]){ schemasCount[schema] += hits; }
|
||||||
{
|
else{ schemasCount[schema] = hits; }
|
||||||
schemasCount[schema] += hits;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
schemasCount[schema] = hits;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Loop results
|
// Loop results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user