Fix (read: hack) "number of chosen songs" parsing.
[ccbs] / parse / parse-ddreurope-tournament.pl
index eee3d7d..d5ec424 100644 (file)
@@ -95,9 +95,9 @@ while (<>) {
                print "  round=$round;\n";
        }
 
-       # Header for chosen song
+       # Header for chosen song (evil)
        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";
        }