V0.1
This commit is contained in:
@@ -36,6 +36,18 @@ export function computeRemoteDurationSeconds(startIso, endIso) {
|
||||
* jüngster Session je Gerät; Anzeigename Gerät = devicename oder sonst deviceid.
|
||||
*/
|
||||
/** TeamViewer liefert Feldnamen je nach Version leicht unterschiedlich (userid / user_id / …). */
|
||||
/** TeamViewer Connection Report: optionales Freitextfeld */
|
||||
function pickNotes(rec) {
|
||||
const raw =
|
||||
rec.notes ??
|
||||
rec.Notes ??
|
||||
rec.connection_notes ??
|
||||
rec.session_notes ??
|
||||
'';
|
||||
const s = String(raw ?? '').trim();
|
||||
return s || null;
|
||||
}
|
||||
|
||||
function pickUserIdentity(rec) {
|
||||
const uid = String(
|
||||
rec.userid ?? rec.user_id ?? rec.userId ?? rec.UserID ?? '',
|
||||
@@ -112,6 +124,7 @@ function buildSessionsByUser(allRecords) {
|
||||
startDate: startDate || null,
|
||||
endDate: endDate || null,
|
||||
durationSeconds: computeRemoteDurationSeconds(startDate, endDate),
|
||||
notes: pickNotes(rec),
|
||||
});
|
||||
}
|
||||
devices.sort((a, b) =>
|
||||
|
||||
Reference in New Issue
Block a user