mirror of
https://gitlab.com/cyclane/sbdatatracker.git
synced 2025-04-19 12:25:05 +00:00
Added length filter
This commit is contained in:
parent
c55f3d7bd9
commit
6c89ca79fe
@ -58,7 +58,8 @@ export async function get(
|
|||||||
let d: [string, number, number][][] = data;
|
let d: [string, number, number][][] = data;
|
||||||
res.end(
|
res.end(
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
d.map((values, idx) => {
|
d
|
||||||
|
.map((values, idx) => {
|
||||||
return values.filter(value => {
|
return values.filter(value => {
|
||||||
return (
|
return (
|
||||||
idx === 0 ||
|
idx === 0 ||
|
||||||
@ -72,6 +73,7 @@ export async function get(
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
.filter(v => v.length > 0)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user