print " round=$round;\n";
}
- # Header for chosen song
+ # Header for chosen song (evil)
if (/<th \s* class=dthp \s* colspan=2> <\/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";
}