Aktualisiere die Version auf 1.8.12, passe die Protokollnachricht für den QTTR-Import an und füge Tests für die QTTR-Importsignatur hinzu.
This commit is contained in:
@@ -287,15 +287,21 @@ async function importAuthenticatedTtrValues(connection) {
|
||||
})
|
||||
await sendOwnTtrChangePush(changes)
|
||||
if (previousQttrSignature && previousQttrSignature !== nextQttrSignature) {
|
||||
await sendQttrListUpdatedPush({ importedAt, rowCount: rows.length })
|
||||
await sendQttrListUpdatedPush({
|
||||
importedAt,
|
||||
rowCount: rows.filter(row => row.currentQttr != null).length
|
||||
})
|
||||
}
|
||||
await saveMyTischtennisConnection({ ...connection, lastSuccessfulImportAt: importedAt, lastImportError: null })
|
||||
return { outputFile: OUTPUT_FILE, tableCount: 1, ...payload }
|
||||
}
|
||||
|
||||
function qttrListSignature(rows) {
|
||||
export function qttrListSignature(rows) {
|
||||
if (!Array.isArray(rows) || rows.length === 0) return ''
|
||||
return rows
|
||||
// TTR-only players are refreshed daily. They must neither alter the
|
||||
// quarterly QTTR signature nor trigger a QTTR-list notification.
|
||||
.filter(row => row?.currentQttr != null)
|
||||
.map(row => [
|
||||
String(row?.playerNumber || row?.playerName || '').trim().toLocaleLowerCase('de-DE'),
|
||||
row?.currentQttr ?? ''
|
||||
|
||||
Reference in New Issue
Block a user