X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=parse%2Fparse-ddreurope-tournament.pl;fp=parse%2Fparse-ddreurope-tournament.pl;h=ad3fe0776b20f38275146f99b547cbbc90f2718b;hp=d2d06ee0becf41f93779b00f899b34d2f6afd246;hb=62731f1052d2a3f21c2aac3511a0114bf6973c74;hpb=a0c29dc24500059c580f6ec2647e8a2d2385ea77 diff --git a/parse/parse-ddreurope-tournament.pl b/parse/parse-ddreurope-tournament.pl index d2d06ee..ad3fe07 100644 --- a/parse/parse-ddreurope-tournament.pl +++ b/parse/parse-ddreurope-tournament.pl @@ -92,6 +92,11 @@ while (<>) { if (/^ .*? class="link"> (.*?) <\/a> $/x) { $player = $1; printf "INSERT INTO players (nick) VALUES ('%s');\n", $player; + printf "INSERT INTO roundparticipation (tournament, round, parallel, player) VALUES (\n"; + print " (SELECT tournament FROM tournaments WHERE name='$name'),\n"; + print " $round, $group,\n"; + print " (SELECT player FROM players WHERE nick='$player')\n"; + print ");\n"; } # Player's results (score)