EGF format uses handicap correction for file extension

This commit is contained in:
Claude Brisson
2024-04-11 22:32:39 +02:00
parent 87e10f5cb6
commit c2b3c8739a
2 changed files with 2 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ onLoad(() => {
publish('application/ffg', 'tou'); publish('application/ffg', 'tou');
}); });
$('.publish-egf').on('click', e => { $('.publish-egf').on('click', e => {
publish('application/egf', 'h9'); publish('application/egf', 'h' + (typeof(correction) === 'number' && correction > 0 ? correction : 9 ));
}); });
$('.publish-csv').on('click', e => { $('.publish-csv').on('click', e => {
publish('text/csv', 'csv'); publish('text/csv', 'csv');

View File

@@ -50,6 +50,7 @@
const tour_id = ${tour.id}; const tour_id = ${tour.id};
const tour_rounds = ${tour.rounds}; const tour_rounds = ${tour.rounds};
let activeRound = ${round}; let activeRound = ${round};
let correction = #if($tour.pairing.type == 'MAC_MAHON')${tour.pairing.handicap.correction}#{else}0#end;
let standingsUpToDate = true; let standingsUpToDate = true;
let pairablesUpToDate = true; let pairablesUpToDate = true;
// $params // $params