Fix bad query when checking for already solved exercice
This commit is contained in:
parent
b02c823f9e
commit
89c2c4a2dc
1 changed files with 1 additions and 1 deletions
2
check.pl
2
check.pl
|
@ -187,7 +187,7 @@ for my $f (readdir $dh)
|
||||||
if (! @$row[0] || $sth->rows)
|
if (! @$row[0] || $sth->rows)
|
||||||
{
|
{
|
||||||
# Check if the team has not already solved this exercice
|
# Check if the team has not already solved this exercice
|
||||||
$sth = query($dbh, "SELECT S.id FROM solved S WHERE S.id_exercice = ".$dbh->quote($exercice));
|
$sth = query($dbh, "SELECT S.id FROM solved S WHERE S.id_team = $team AND S.id_exercice = ".$dbh->quote($exercice));
|
||||||
if (! $sth->rows)
|
if (! $sth->rows)
|
||||||
{
|
{
|
||||||
say "resetresetreset:TEAM$team,$theme:SYNCSYN:TEAM$team:SYNC:HOME:SYNC:all:DS";
|
say "resetresetreset:TEAM$team,$theme:SYNCSYN:TEAM$team:SYNC:HOME:SYNC:all:DS";
|
||||||
|
|
Reference in a new issue