remove broken filter

master
Dirk Heilig 2024-09-23 14:21:00 +02:00
parent a5e0a3f2c5
commit 9d36ec5c0f
1 changed files with 2 additions and 1 deletions

View File

@ -375,7 +375,7 @@ function filter(): void
}); });
} }
// remove data points with the same name and labels, keep the newest // remove data points with the same name and labels, keep the newest
$filterEntries = []; /* $filterEntries = [];
foreach ($data as $key => $entry) { foreach ($data as $key => $entry) {
$sort = $entry["labels"] ?? []; $sort = $entry["labels"] ?? [];
ksort($sort); ksort($sort);
@ -402,6 +402,7 @@ function filter(): void
return in_array($key, $keysToKeep); return in_array($key, $keysToKeep);
}); });
$data = array_values($data); $data = array_values($data);
*/
} }
function getEnvWithDefaultStr(string $key, string $default): string function getEnvWithDefaultStr(string $key, string $default): string