Fix pairgoth export

This commit is contained in:
2026-07-05 18:44:30 +02:00
parent 1d5fed6e1f
commit f5b5af5372
3 changed files with 10 additions and 1087 deletions

7
TODO.md Normal file
View File

@@ -0,0 +1,7 @@
in macMahon export -> under country copy clubs.
Edit in delete button in line
make update person per person
Remove update egd data

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,7 @@ $count = count($entries);
foreach ($entries as $i => $e) {
$rank = $e->rank - 30;
$id = ($i + 1) * 2;
$out = "{\"id\":$id,\"name\":\"$e->first_name\",\"firstname\":\"$e->last_name\",\"rating\":$e->rating,\"rank\":$rank,\"country\":\"$e->country\",\"club\":\"$e->club\",\"final\":false,\"egf\":\"$e->egd_number\"}";
$out = "{\"id\":$id,\"name\":\"$e->last_name\",\"firstname\":\"$e->first_name\",\"rating\":$e->rating,\"rank\":$rank,\"country\":\"$e->country\",\"club\":\"$e->club\",\"final\":false,\"egf\":\"$e->egd_number\"}";
if ($i + 1 < $count) {
$out .= ",";
}