Skip to content
Snippets Groups Projects
Commit 5601103d authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-717: getSubTasksStartingInThreeMinutes includes subtasks in scheduled and queueing state

parent 94bf067c
No related branches found
No related tags found
1 merge request!447TMSS-717: merge commissioning fixes back to master
......@@ -87,7 +87,16 @@ Json::Value TMSSBridge::getSubTasksStartingInThreeMinutes()
Json::Value result;
if(httpGETAsJson(queryStr, result))
return result["results"];
result = result["results"];
// combine scheduled list with queuing list
string queryStr2 = "/api/subtask/?state__value=queueing&start_time__gt=" + to_iso_extended_string(lower_limit) + "&start_time__lt=" + to_iso_extended_string(upper_limit) + "&ordering=start_time";
Json::Value result2;
if(httpGETAsJson(queryStr2, result2))
result2 = result2["results"];
result = result.append(result2)
return result;
return Json::Value("");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment