From dee5b5fbb728259c85ec2dccbabb2cebd3af0101 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 20 Jan 2014 05:52:25 +0100 Subject: [PATCH] Add reset command before each regeneration demand --- check.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check.pl b/check.pl index e42fa1c3..2840f349 100755 --- a/check.pl +++ b/check.pl @@ -132,7 +132,7 @@ for my $f (readdir $dh) $sth = query($dbh, "SELECT S.id FROM solved S WHERE S.id_exercice = ".$dbh->quote($exercice)); if (! $sth->rows) { - say "TEAM$team,$theme:SYNCSYN:TEAM$team:SYNC:HOME:SYNC:all:DS"; + say "resetresetreset:TEAM$team,$theme:SYNCSYN:TEAM$team:SYNC:HOME:SYNC:all:DS"; say STDERR localtime().": Team $team solve exercice $exercice in $theme"; query($dbh, "INSERT INTO solved (id_team, id_exercice, time) VALUES ($team, ".$dbh->quote($exercice).", CURRENT_TIMESTAMP);"); @@ -151,7 +151,7 @@ for my $f (readdir $dh) } } else { - say "TEAM$team,$theme:SYNCSYN"; + say "resetresetreset:TEAM$team,$theme:SYNCSYN"; say STDERR localtime().": Team $team didn't give the correct answer for exercice $exercice."; }