Commit 5686f650 authored by GROSS-AMBLARD David's avatar GROSS-AMBLARD David
Browse files

fixes case when wirk answers an empty quality

parent cbc75dfb
......@@ -118,6 +118,8 @@ function checkWirkImageAnnotator($conn){
else {
$result=$tasks[0]->{'Outputs'}->{'1605'};
$quality=$tasks[0]->{'Outputs'}->{'1606'};
if(empty($quality))
$quality=0;
$conn->query("insert into Answer(idtask,user,artifact,value,mass) values ($taskid,$userid,$artifactid,'".$result."',$quality)");
$conn->query("insert into Answered(id,artifact) values ($taskid,$artifactid)");
$conn->query("delete from ServiceCall where artifactid=$artifactid and userid=$userid and taskid=$taskid");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment