fix parsing of pixellog

This commit is contained in:
HF 2022-08-02 22:38:14 +02:00
parent ae878d4518
commit f43b786f31

View File

@ -131,7 +131,7 @@ export async function getSummaryFromArea(
const ipInfo = ip2Info.get(ip);
if (!ipInfo) {
row.push('N/A', 'xx', 'N/A', 'N/A', 'N/A');
}
} else {
let { pcheck } = ipInfo;
if (pcheck) {
const seperator = pcheck.indexOf(',');
@ -147,6 +147,7 @@ export async function getSummaryFromArea(
pcheck || 'N/A',
);
}
}
if (printUsers) {
const userMd = (uid && uid2Name.has(uid))
? `${uid2Name.get(uid)},${uid}` : 'N/A';