EGF format uses handicap correction for file extension
This commit is contained in:
@@ -80,7 +80,7 @@ onLoad(() => {
|
||||
publish('application/ffg', 'tou');
|
||||
});
|
||||
$('.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('text/csv', 'csv');
|
||||
|
@@ -50,6 +50,7 @@
|
||||
const tour_id = ${tour.id};
|
||||
const tour_rounds = ${tour.rounds};
|
||||
let activeRound = ${round};
|
||||
let correction = #if($tour.pairing.type == 'MAC_MAHON')${tour.pairing.handicap.correction}#{else}0#end;
|
||||
let standingsUpToDate = true;
|
||||
let pairablesUpToDate = true;
|
||||
// $params
|
||||
|
Reference in New Issue
Block a user