Skip to content

Commit 18c4f7a

Browse files
committed
draw teamCode into the score sheet
1 parent fb37dfc commit 18c4f7a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

helper/scoreSheetPDFLineRules/2025.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ async function drawRun(doc, config, scoringRun) {
7575
{ width: 70 }
7676
);
7777

78+
let drawTeamName = scoringRun.team.name;
79+
if (scoringRun.team.teamCode) {
80+
drawTeamName = `${scoringRun.team.teamCode} ${drawTeamName}`
81+
}
7882
// Draw team name
7983
pdf.drawTextWithAlign(
8084
doc,
8185
124,
8286
41,
83-
scoringRun.team.name,
87+
drawTeamName,
8488
15,
8589
'black',
8690
310,

helper/scoreSheetPDFMazeRules/2025.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,16 @@ function drawRun(doc, config, scoringRun) {
8585
{ width: 75 }
8686
);
8787

88+
let drawTeamName = scoringRun.team.name;
89+
if (scoringRun.team.teamCode) {
90+
drawTeamName = `${scoringRun.team.teamCode} ${drawTeamName}`
91+
}
8892
// Draw team name
8993
pdf.drawTextWithAlign(
9094
doc,
9195
140,
9296
45,
93-
scoringRun.team.name,
97+
drawTeamName,
9498
15,
9599
'black',
96100
310,

0 commit comments

Comments
 (0)