Fix (read: hack) "number of chosen songs" parsing.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 17:56:18 +0000 (17:56 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 17:56:18 +0000 (17:56 +0000)
parse/parse-ddreurope-tournament.pl

index eee3d7d..d5ec424 100644 (file)
@@ -95,9 +95,9 @@ while (<>) {
                print "  round=$round;\n";
        }
 
                print "  round=$round;\n";
        }
 
-       # Header for chosen song
+       # Header for chosen song (evil)
        if (/<th \s* class=dthp \s* colspan=2>&nbsp<\/th>/x) {
        if (/<th \s* class=dthp \s* colspan=2>&nbsp<\/th>/x) {
-               printf "UPDATE rounds SET chosensongs=chosensongs+1 WHERE \n";
+               printf "UPDATE rounds SET chosensongs=1 WHERE \n";
                print "  tournament=(SELECT tournament FROM tournaments WHERE name='$name') AND \n";
                print "  round=$round;\n";
        }
                print "  tournament=(SELECT tournament FROM tournaments WHERE name='$name') AND \n";
                print "  round=$round;\n";
        }