diff --git a/src/common/data-aftt/services/member-processing.service.ts b/src/common/data-aftt/services/member-processing.service.ts index 16992e94..e55ccf5b 100644 --- a/src/common/data-aftt/services/member-processing.service.ts +++ b/src/common/data-aftt/services/member-processing.service.ts @@ -71,7 +71,7 @@ export class DataAFTTMemberProcessingService { memberId: parseInt(cols[0], 10), memberLicence: parseInt(cols[1], 10), date: new Date(), - points: parseInt(cols[10], 10), + points: parseFloat(cols[10]), ranking: cols[11].length ? parseInt(cols[11]) : null, rankingWI: cols[12].length ? parseInt(cols[12]) : null, rankingLetterEstimation: null, diff --git a/src/common/data-aftt/services/results-processing.service.ts b/src/common/data-aftt/services/results-processing.service.ts index 9f9a3d1b..3fe01e1f 100644 --- a/src/common/data-aftt/services/results-processing.service.ts +++ b/src/common/data-aftt/services/results-processing.service.ts @@ -82,19 +82,19 @@ export class DataAFTTResultsProcessingService { date: new Date(cols[1]), memberLicence: parseInt(cols[2], 10), memberRanking: cols[10], - memberPoints: parseInt(cols[13], 10), + memberPoints: parseFloat(cols[13]), opponentRanking: cols[8], opponentLicence: parseInt(cols[3], 10), - opponentPoints: parseInt(cols[14], 10), + opponentPoints: parseFloat(cols[14]), result: cols[4] === 'V' ? Result.VICTORY : Result.DEFEAT, score: cols[5], competitionType: cols[9] === 'T' ? CompetitionType.TOURNAMENT : CompetitionType.CHAMPIONSHIP, competitionCoef: parseFloat(cols[11]), competitionName: cols[12], - diffPoints: parseInt(cols[15], 10), - pointsToAdd: parseInt(cols[16], 10), + diffPoints: parseFloat(cols[15]), + pointsToAdd: parseFloat(cols[16]), looseFactor: parseFloat(cols[17]), - definitivePointsToAdd: parseInt(cols[18], 10), + definitivePointsToAdd: parseFloat(cols[18]), }, gender); } catch (e) { this.logger.error(e.message);