--- db/prgsrc/updateindex.pl 2000/11/11 00:35:39 1.7 +++ db/prgsrc/updateindex.pl 2002/11/09 01:46:24 1.8 @@ -58,7 +58,7 @@ createindex.pl(1) Boris Veytsman -=head1 $Id: updateindex.pl,v 1.7 2000/11/11 00:35:39 boris Exp $ +=head1 $Id: updateindex.pl,v 1.8 2002/11/09 01:46:24 roma7 Exp $ =cut @@ -98,6 +98,7 @@ MAIN: } else { *INFO=*STDIN; } + while () { chomp; s/ //; @@ -131,6 +132,11 @@ MAIN: print STDERR "Removing empty tours."; $dbh->do("DELETE FROM Tournaments WHERE QuestionsNum=0"); } + $dbh->do("INSERT INTO Tournaments + (Id, Title, ParentId, Type) + VALUES + (9999, 'Несортированные турниры', 0,'Г')"); + $dbh->disconnect; }