EGF format uses handicap correction for file extension
This commit is contained in:
@@ -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');
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user