]> git.sesse.net Git - ccbs/commitdiff
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 eee3d7d4ae42f01fb7e5dfd15b1550e17d8a48d3..d5ec424b3794610b7831bff6c61e352b883e3970 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";
        }