Füge Unterstützung für Spielplan-Team-ID in mehreren Komponenten hinzu und aktualisiere CSV-Export
All checks were successful
Code Analysis and Production Deploy / analyze (push) Successful in 7m2s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m15s

This commit is contained in:
Torsten Schulz (local)
2026-07-17 08:29:34 +02:00
parent 0ab71166aa
commit f060c9771f
6 changed files with 37 additions and 10 deletions

View File

@@ -25,12 +25,14 @@ const SPIELPLAN_HEADERS = [
'HeimVereinName',
'HeimMannschaftAltersklasse',
'HeimMannschaftNr',
'HeimMannschaftId',
'HeimMannschaft',
'GastVereinVerband',
'GastVereinNr',
'GastVereinName',
'GastMannschaftAltersklasse',
'GastMannschaftNr',
'GastMannschaftId',
'GastMannschaft',
'SpieleHeim',
'SpieleGast'
@@ -250,12 +252,14 @@ export function convertImportedSpielplanToJson(imported) {
HeimVereinName: homeIsHarheim ? CLUB_NAME : '',
HeimMannschaftAltersklasse: inferAgeClass(match, match.teamHome),
HeimMannschaftNr: inferTeamNumber(match.teamHome),
HeimMannschaftId: match.teamHomeId || '',
HeimMannschaft: match.teamHome || '',
GastVereinVerband: match.leagueOrgShortName || imported.source?.association || '',
GastVereinNr: match.teamAwayClubId || '',
GastVereinName: awayIsHarheim ? CLUB_NAME : '',
GastMannschaftAltersklasse: inferAgeClass(match, match.teamAway),
GastMannschaftNr: inferTeamNumber(match.teamAway),
GastMannschaftId: match.teamAwayId || '',
GastMannschaft: match.teamAway || '',
SpieleHeim: result.home,
SpieleGast: result.away