From b7ab603bcc7f18177c0b0fc09472bd2047f955f8 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 20 Sep 2025 21:04:21 +0200 Subject: [PATCH] h --- index.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index bf88a78..5f938f4 100644 --- a/index.js +++ b/index.js @@ -139,18 +139,16 @@ async function sendSummary() { async function sendSummaryMatrix(yesterday, stats) { const html = ` - - - - + +
- - - - - - ${stats.isNewRecord ? `` : ''} +
+
+
+
+
+ ${stats.isNewRecord ? `
` : ''}
Summary from ${yesterday.startDate.toString()} to ${yesterday.endDate.toString()}
Summary from ${yesterday.startDate.toString()} to ${yesterday.endDate.toString()}
Calls Made${stats.totalCallsMade}
Monthly Total${stats.totalCallsThisMonth}
Total Calls Ever Placed${stats.totalCallsEverPlaced}
System Uptime${getSystemUptime().toString(false, false)}
All Time Record${stats.allTimeRecord}
🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade}!
Calls Made${stats.totalCallsMade}
Monthly Total${stats.totalCallsThisMonth}
Total Calls Ever Placed${stats.totalCallsEverPlaced}
System Uptime${getSystemUptime().toString(false, false)}
All Time Record${stats.allTimeRecord}
🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade}!
`; @@ -164,7 +162,7 @@ Total Calls Ever Placed: ${stats.totalCallsEverPlaced} System Uptime: ${getSystemUptime().toString(false, false)} All Time Record: ${stats.allTimeRecord} ${stats.isNewRecord ? `🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade}!` : ''}`, - "formatted_body": html, + "formatted_body": html.split('\n').map(s => s.trim()).join(''), "tel.litenet.call_stats_summary": { ...stats, date: yesterday }